This is the same as the add case, but inverts the operation type.
This avoids regressions in a future patch.
Paths
| Differential D70114
AMDGPU: Extend add x, (ext setcc) combine to sub ClosedPublic Authored by arsenm on Nov 12 2019, 2:29 AM.
Details
Summary This is the same as the add case, but inverts the operation type. This avoids regressions in a future patch.
Diff Detail Event TimelineComment Actions AFAIR this was there with the first version of the combine, but then triggered bugs. Please run PSDB before going forward. It should work but exposed problems previously.
This revision is now accepted and ready to land.Nov 12 2019, 9:18 AM
Revision Contents
Diff 228837 llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/test/CodeGen/AMDGPU/combine-cond-add-sub.ll
|
What's the point of this check? Performance or correctness? It needs a comment.