We currently don't match this which limits the effectiveness of D91120 until InstCombine starts canonicalizing to llvm.abs. This should be easy to remove if/when we remove the SPF_ABS handling.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D92118
[SelectionDAGBuilder] Add SPF_NABS support to visitSelect ClosedPublic Authored by craig.topper on Nov 25 2020, 10:57 AM.
Details Summary We currently don't match this which limits the effectiveness of D91120 until InstCombine starts canonicalizing to llvm.abs. This should be easy to remove if/when we remove the SPF_ABS handling.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Nov 25 2020, 2:09 PM Closed by commit rG2d6042937b04: [SelectionDAGBuilder] Add SPF_NABS support to visitSelect (authored by craig.topper). · Explain WhyNov 25 2020, 3:04 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 307662 llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/test/CodeGen/PowerPC/select.ll
llvm/test/CodeGen/RISCV/neg-abs.ll
|