[llvm] r355791 - [CGP] fix comments; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 10 11:42:30 PDT 2019
Author: spatel
Date: Sun Mar 10 11:42:30 2019
New Revision: 355791
URL: http://llvm.org/viewvc/llvm-project?rev=355791&view=rev
Log:
[CGP] fix comments; NFC
Modified:
llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
Modified: llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp?rev=355791&r1=355790&r2=355791&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp Sun Mar 10 11:42:30 2019
@@ -1049,7 +1049,7 @@ bool CodeGenPrepare::simplifyOffsetableR
return MadeChange;
}
-/// SinkCast - Sink the specified cast instruction into its user blocks
+/// Sink the specified cast instruction into its user blocks.
static bool SinkCast(CastInst *CI) {
BasicBlock *DefBB = CI->getParent();
@@ -1421,7 +1421,7 @@ static bool sinkAndCmp0Expression(Instru
for (auto *U : AndI->users()) {
Instruction *User = cast<Instruction>(U);
- // Only sink for and mask feeding icmp with 0.
+ // Only sink 'and' feeding icmp with 0.
if (!isa<ICmpInst>(User))
return false;
More information about the llvm-commits
mailing list