This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add HasStdExtD predicate to copysign from double and to double patterns
ClosedPublic

Authored by Jim on Mar 23 2021, 8:28 PM.

Details

Summary

Copysign from double and to double patterns have lack of HasStdExtD predicate.

Diff Detail

Event Timeline

Jim created this revision.Mar 23 2021, 8:28 PM
Jim requested review of this revision.Mar 23 2021, 8:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 23 2021, 8:28 PM
craig.topper added inline comments.Mar 23 2021, 8:36 PM
llvm/lib/Target/RISCV/RISCVInstrInfoZfh.td
198

Since HasStdExtZfh requires HasStdExtF, I'm not sure this really does anything. We don't use [HasStdExtD, HasStdExtF] in RISCVInstrInfoD.td

Jim updated this revision to Diff 332872.Mar 23 2021, 11:18 PM
Jim retitled this revision from [RISCV] Add predicates to zfh floating-point-to-floating-point conversion instructions and patterns to [RISCV] Add HasStdExtD predicate to copysign from double and to double patterns.
Jim edited the summary of this revision. (Show Details)

Address @craig.topper's comment.

Jim marked an inline comment as done.Mar 23 2021, 11:19 PM
craig.topper accepted this revision.Mar 23 2021, 11:20 PM

LGTM. Thanks!

This revision is now accepted and ready to land.Mar 23 2021, 11:20 PM
This revision was landed with ongoing or failed builds.Mar 23 2021, 11:28 PM
This revision was automatically updated to reflect the committed changes.