[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
This commit is contained in:
Craig Topper 2017-07-03 05:54:16 +00:00
parent 766ce6e9cf
commit 8036970008
1 changed files with 2 additions and 0 deletions

View File

@ -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;