diff options
| author | Craig Topper <craig.topper@intel.com> | 2017-07-03 05:54:16 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2017-07-03 05:54:16 +0000 |
| commit | 8036970008aae90b4a6a2afdbb9e9b672b5ebd02 (patch) | |
| tree | 27443899e147a0ae3fea1229470910a561a6f60c /llvm/lib | |
| parent | 766ce6e9cfcfb78eb726499fa5e9775401ffb136 (diff) | |
| download | bcm5719-llvm-8036970008aae90b4a6a2afdbb9e9b672b5ebd02.tar.gz bcm5719-llvm-8036970008aae90b4a6a2afdbb9e9b672b5ebd02.zip | |
[InstCombine] Add a TODO for a probable missing single use check. NFC
Will try to fix it soon, but in case I forget.
llvm-svn: 307003
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp index 0f034107b3d..afc3b064c6c 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp @@ -82,6 +82,8 @@ static Value *getFCmpValue(unsigned Code, Value *LHS, Value *RHS, Value *InstCombiner::SimplifyBSwap(BinaryOperator &I) { assert(I.isBitwiseLogicOp() && "Unexpected opcode for bswap simplifying"); + // TODO We should probably check for single use of the bswap. + Value *NewLHS; if (!match(I.getOperand(0), m_BSwap(m_Value(NewLHS)))) return nullptr; |

