OSDN Git Service

[InstCombine] recode icmp fold in a vector-friendly way; NFC
authorSanjay Patel <spatel@rotateright.com>
Sun, 4 Sep 2016 14:32:15 +0000 (14:32 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 4 Sep 2016 14:32:15 +0000 (14:32 +0000)
commite57e8b4c4cc8476b9299f95796a5a854f3c38ed7
treedc073c7005ac73c6b9484007bbd2c9b29b84e64e
parentf21bb8dcbdbd2ec27990923c1679cab8aa3e07f1
[InstCombine] recode icmp fold in a vector-friendly way; NFC

The transform in question:
icmp (and (trunc W), C2), C1 -> icmp (and W, C2'), C1'

...is still not enabled for vectors, thus no functional change intended.
It's not clear to me if this is a good transform for vectors or even
scalars in general. Changing that behavior may be a follow-on patch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280627 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp