Previously we used sra+add+xor if ADDCARRY is supported. This changes
to sra+xor+sub is SUBCARRY is available.
This is consistent with the recent change to the default expansion
in LegalizeDAG.
Paths
| Differential D121039
[LegalizeTypes][ARM][X86] Change ExpandIntRes_ABS to use sra+xor+sub. ClosedPublic Authored by craig.topper on Mar 4 2022, 6:58 PM.
Details Summary Previously we used sra+add+xor if ADDCARRY is supported. This changes This is consistent with the recent change to the default expansion
Diff Detail
Unit TestsFailed Event TimelineThis revision is now accepted and ready to land.Mar 7 2022, 7:19 AM This revision was landed with ongoing or failed builds.Mar 7 2022, 11:28 AM Closed by commit rG8e132c5c1d4c: [LegalizeTypes][ARM][X86] Change ExpandIntRes_ABS to use sra+xor+sub. (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 413186 llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/test/CodeGen/ARM/iabs.ll
llvm/test/CodeGen/Thumb2/mve-abs.ll
llvm/test/CodeGen/Thumb2/mve-vabdus.ll
llvm/test/CodeGen/X86/abs.ll
llvm/test/CodeGen/X86/iabs.ll
llvm/test/CodeGen/X86/neg-abs.ll
llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/basic.ll.expected
|
clang-format not found in user’s local PATH; not linting file.