OSDN Git Service

[InstCombine] fix misnamed locals and use them to reduce code; NFCI
authorSanjay Patel <spatel@rotateright.com>
Sat, 2 Sep 2017 17:17:17 +0000 (17:17 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sat, 2 Sep 2017 17:17:17 +0000 (17:17 +0000)
commitc764030f4b357f0da67a1fa4722b4d9f9c0bf5fc
tree7ed622fd2402f52fb6423243828995ddf712bca9
parent6bf02adee0ef1a90207baec042d6781d562ed282
[InstCombine] fix misnamed locals and use them to reduce code; NFCI

We had these locals:
Value *Op0RHS = LHS->getOperand(1);
Value *Op1LHS = RHS->getOperand(0);
...so we confusingly transposed the meaning of left/right and op0/op1.

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