This essentially does the same transform as for SUBC.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
2130 ↗ | (On Diff #89959) | If i am not mistaken, we don't have a similar LLVM IR transform in InstCombine or InstSimplify. |
lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
2115 ↗ | (On Diff #89959) | I don't think so. |
2119 ↗ | (On Diff #89959) | Both codegen result in a sub, the overflow flag goes into the flag register no matter what. I'm not sure what can be done. Add a usubo with a transform that work on a sub and nothing that use the flag and see the transform kicks in ? |
Comment Actions
LGTM with one minor to check for vector types.
lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
2115 ↗ | (On Diff #89959) | Please can you add an early out for vectors then, just in case. |