]> granicus.if.org Git - llvm/commitdiff
[CGP] fix comments; NFC
authorSanjay Patel <spatel@rotateright.com>
Sun, 10 Mar 2019 18:42:30 +0000 (18:42 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 10 Mar 2019 18:42:30 +0000 (18:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355791 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenPrepare.cpp

index 57182f6de4113b9feb146e77a2bb0df5037ba5e8..80335f55c77cb2d339f41e3b396896c7234b1e4c 100644 (file)
@@ -1049,7 +1049,7 @@ bool CodeGenPrepare::simplifyOffsetableRelocate(Instruction &I) {
   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(Instruction *AndI,
   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;