forked from OSchip/llvm-project
[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:
parent
766ce6e9cf
commit
8036970008
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue