]> granicus.if.org Git - llvm/commitdiff
[InstCombine] Add a TODO for a probable missing single use check. NFC
authorCraig Topper <craig.topper@intel.com>
Mon, 3 Jul 2017 05:54:16 +0000 (05:54 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 3 Jul 2017 05:54:16 +0000 (05:54 +0000)
Will try to fix it soon, but in case I forget.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307003 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstCombineAndOrXor.cpp

index 0f034107b3d1355a2b8e7e71cfa5f42f7bd5b849..afc3b064c6c6f6a81e2514ea0413cabab6f34754 100644 (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;