OSDN Git Service

In InstCombiner::visitOr, make sure we reverse the operand swap used for checking...
authorEli Friedman <eli.friedman@gmail.com>
Fri, 16 Mar 2012 00:52:42 +0000 (00:52 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 16 Mar 2012 00:52:42 +0000 (00:52 +0000)
commite9f15c8a563a745c5cafa7c98b1f12de2dcab070
treedf4af33b10b43d8c5900d38c2d6b9cc994d8df6c
parent213d2e7dc31bef3ceeef0cefa703cb4ce52de51a
In InstCombiner::visitOr, make sure we reverse the operand swap used for checking for or-of-xor operations after those checks; a later check expects that any constant will be in Op1.  PR12234.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152884 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
test/Transforms/InstCombine/2012-3-15-or-xor-constant.ll [new file with mode: 0644]