[llvm] r307274 - [InstCombine] Clarify comment to mention other transform that it does. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 6 09:24:22 PDT 2017


Author: ctopper
Date: Thu Jul  6 09:24:22 2017
New Revision: 307274

URL: http://llvm.org/viewvc/llvm-project?rev=307274&view=rev
Log:
[InstCombine] Clarify comment to mention other transform that it does. NFC

Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp

Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp?rev=307274&r1=307273&r2=307274&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp Thu Jul  6 09:24:22 2017
@@ -75,7 +75,8 @@ static Value *getFCmpValue(unsigned Code
   return Builder->CreateFCmp(Pred, LHS, RHS);
 }
 
-/// \brief Transform BITWISE_OP(BSWAP(A),BSWAP(B)) to BSWAP(BITWISE_OP(A, B))
+/// \brief Transform BITWISE_OP(BSWAP(A),BSWAP(B)) or
+/// BITWISE_OP(BSWAP(A), Constant) to BSWAP(BITWISE_OP(A, B))
 /// \param I Binary operator to transform.
 /// \return Pointer to node that must replace the original binary operator, or
 ///         null pointer if no transformation was made.




More information about the llvm-commits mailing list