Adds a seto pattern expansion. Without it the lowerings of fcmp one and
fcmp ord would be inefficient due to an unoptimized double negation.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lib/Target/RISCV/RISCVInstrInfoD.td | ||
---|---|---|
278 ↗ | (On Diff #191887) | This looks to me as logically the same as seto. So we can make it legal (for F and D) in RISCVISelLowering.cpp (now it is marked as Expand) and use this pattern as its expansion. |
lib/Target/RISCV/RISCVInstrInfoF.td | ||
332 ↗ | (On Diff #191887) | Ditto. |
Comment Actions
Changed the patch to add a pattern expansion for seto, as nicely spotted and suggested by @rogfer01