Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp | ||
---|---|---|
3000 | If the if() below fails - doesn't this leave the LHS0/LHS1 operands in a commuted state further down? |
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp | ||
---|---|---|
3000 | (LHS0 == RHS1 && LHS1 == RHS0) is true, means (LHS0 == RHS0 && LHS1 == RHS1) must be true. I think this is consistent with the original logic. |
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp | ||
---|---|---|
3000 | Correct |
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp | ||
---|---|---|
3000 | Aren't you missing a PredL = ICmpInst::getSwappedPredicate(PredL) here? |
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp | ||
---|---|---|
3000 | Thanks and done. |
If the if() below fails - doesn't this leave the LHS0/LHS1 operands in a commuted state further down?