Instead of emitting 0 > Hi, emit Hi < 0. If Hi needs to be expanded again
this will allow the special case for sign bit tests in ExpandIntOp_SETCC
to trigger.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D120761
[SelectionDAG][RISCV] Emit a canonical sign bit test from ExpandIntRes_ABS. ClosedPublic Authored by craig.topper on Mar 1 2022, 12:08 PM.
Details Summary Instead of emitting 0 > Hi, emit Hi < 0. If Hi needs to be expanded again
Diff Detail
Event TimelineHerald added subscribers: VincentWu, luke957, achieveartificialintelligence and 28 others. · View Herald TranscriptMar 1 2022, 12:08 PM This revision is now accepted and ready to land.Mar 2 2022, 8:50 AM This revision was landed with ongoing or failed builds.Mar 2 2022, 9:54 AM Closed by commit rG324c0a72061e: [SelectionDAG][RISCV] Emit a canonical sign bit test from ExpandIntRes_ABS. (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 412474 llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/test/CodeGen/RISCV/iabs.ll
|