summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-08-22 23:40:15 +0000
committerCraig Topper <craig.topper@intel.com>2017-08-22 23:40:15 +0000
commitec4b82571c68f374740e238cefa2c43eaee1a9f8 (patch)
tree3011c2f0d61ec6a9acd5a665f4cb61836567fbc8 /llvm/lib/CodeGen/MachineFunction.cpp
parentd680edfb986801090112c575d94d5d11c16fbd30 (diff)
downloadbcm5719-llvm-ec4b82571c68f374740e238cefa2c43eaee1a9f8.tar.gz
bcm5719-llvm-ec4b82571c68f374740e238cefa2c43eaee1a9f8.zip
[InstCombine] Remove check for sext of vector icmp from shouldOptimizeCast
Looks like for 'and' and 'or' we end up performing at least some of the transformations this is bocking in a round about way anyway. For 'and sext(cmp1), sext(cmp2) we end up later turning it into 'select cmp1, sext(cmp2), 0'. Then we optimize that back to sext (and cmp1, cmp2). This is the same result we would have gotten if shouldOptimizeCast hadn't blocked it. We do something analogous for 'or'. With this patch we allow that transformation to happen directly in foldCastedBitwiseLogic. And we now support the same thing for 'xor'. This is definitely opening up many other cases, but since we already went around it for some cases hopefully it's ok. Differential Revision: https://reviews.llvm.org/D36213 llvm-svn: 311508
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud