This can prevent unnecessarily hoisting out of loops.
Test case cribbed from AArch64.
I also intend to make them rematerializable.
Paths
| Differential D146314
[RISCV] Add isAsCheapAsAMove to FLI instructions. ClosedPublic Authored by craig.topper on Mar 17 2023, 11:04 AM.
Details Summary This can prevent unnecessarily hoisting out of loops. Test case cribbed from AArch64. I also intend to make them rematerializable.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 17 2023, 11:57 AM This revision was landed with ongoing or failed builds.Mar 17 2023, 12:16 PM Closed by commit rG0a895c39adaf: [RISCV] Add isAsCheapAsAMove to FLI instructions. (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 506144 llvm/lib/Target/RISCV/RISCVInstrInfoZfa.td
llvm/test/CodeGen/RISCV/fli-licm.ll
|