summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-02-24 15:18:42 +0000
committerSanjay Patel <spatel@rotateright.com>2017-02-24 15:18:42 +0000
commitec9a8de0e60fdf80da53d8473e04ddad645545a8 (patch)
tree1f01fc2bdbb425c7fd38342d36f93e2c20d418c6 /llvm/lib/CodeGen
parent9f0fa52aa2c2c2e5fa62ecd4e1aadf51e08ab1e9 (diff)
downloadbcm5719-llvm-ec9a8de0e60fdf80da53d8473e04ddad645545a8.tar.gz
bcm5719-llvm-ec9a8de0e60fdf80da53d8473e04ddad645545a8.zip
[InstCombine] don't try SimplifyDemandedInstructionBits from zext/sext because it's slow and unnecessary
This one seems more obvious than D30270 that it can't make improvements because an extension always needs all of the incoming bits. There's one specific transform in SimplifyDemandedInstructionBits of converting a sext to a zext when the sign-bit is known zero, but that is handled explicitly in visitSext() with ComputeSignBit(). Like D30270, there are no IR differences (other than instruction names) for the case in PR32037: https://bugs.llvm.org//show_bug.cgi?id=32037 ...and no regression test differences. Zext/sext are a smaller part of the profile, but this still appears to shave off another 0.5% or so from 'opt -O2'. Differential Revision: https://reviews.llvm.org/D30280 llvm-svn: 296129
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud