summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-07-06 16:24:22 +0000
committerCraig Topper <craig.topper@intel.com>2017-07-06 16:24:22 +0000
commitfc42acef92be0ef95cd72a3db3e345c8ae23b381 (patch)
treef76e075e56c97e82bc2f767a3dcba03eb2e06ab0
parent22795de20a10835f197587b3c7c79c962657da92 (diff)
downloadbcm5719-llvm-fc42acef92be0ef95cd72a3db3e345c8ae23b381.tar.gz
bcm5719-llvm-fc42acef92be0ef95cd72a3db3e345c8ae23b381.zip
[InstCombine] Clarify comment to mention other transform that it does. NFC
llvm-svn: 307274
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
index a23cad40a38..7e8c2e1b4c1 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
@@ -75,7 +75,8 @@ static Value *getFCmpValue(unsigned Code, Value *LHS, Value *RHS,
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.
OpenPOWER on IntegriCloud