[X86] Improve codegen for inverted overflow checking intrinsics.
Adds a new combine for: xor(setcc cc, val), 1 --> setcc (invert(cc), val)
This is the same optimization as the one for AArch64 in D38160 but implemented in a different way.
Differential D38161
[X86] Improve codegen for inverted overflow checking intrinsics aemerson on Sep 21 2017, 5:19 PM. Authored by
Details [X86] Improve codegen for inverted overflow checking intrinsics. Adds a new combine for: xor(setcc cc, val), 1 --> setcc (invert(cc), val) This is the same optimization as the one for AArch64 in D38160 but implemented in a different way.
Diff Detail
Event TimelineComment Actions Please commit overflow-intrinsic-setcc-fold.ll (with fixes suggested) with the current codegen so this patch show the delta
Comment Actions You mean actually commit the current codegen's test output (with no code changes) and then resubmit this patch as a diff? Comment Actions Makes sense to me, although it's a pity we can't move more of this into DAGCombine and stop it being so target specific Comment Actions Our bots are not happy about this change: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap/builds/2355 and http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-autoconf/builds/14195 for example, please fix |
Remove -mcpu=generic and regenerate the file with utils\update_llc_test_checks.py