Prefer to expand mask for xor to -1, so we have a chance to turn it into a not.
authorTorok Edwin <edwintorok@gmail.com>
Sun, 6 Apr 2008 21:23:02 +0000 (21:23 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Sun, 6 Apr 2008 21:23:02 +0000 (21:23 +0000)
commit4fea2e982d79132715711dfcfdc46abf15239217
tree6a99d39f0d871028fd0ba90ec92df26864c8f9d0
parent051a950000e21935165db56695e35bade668193b
Prefer to expand mask for xor to -1, so we have a chance to turn it into a not.
If it cannot be expanded, it will keep the old behaviour and try to shrink the constant.
Part of enhancement for PR2191.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49280 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/X86/xor_not.ll [new file with mode: 0644]