[llvm] r260541 - Fixed typo in r260530

Jun Bum Lim via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 11 08:46:13 PST 2016


Author: junbuml
Date: Thu Feb 11 10:46:13 2016
New Revision: 260541

URL: http://llvm.org/viewvc/llvm-project?rev=260541&view=rev
Log:
Fixed typo in r260530

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

Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombinePHI.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombinePHI.cpp?rev=260541&r1=260540&r2=260541&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombinePHI.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombinePHI.cpp Thu Feb 11 10:46:13 2016
@@ -644,8 +644,8 @@ static bool PHIsEqualValue(PHINode *PN,
   return true;
 }
 
-/// Return an existing non-zero constant if this phi node has, otherwise ruturn
-/// constant 1.
+/// Return an existing non-zero constant if this phi node has one, otherwise
+/// return constant 1.
 static ConstantInt *GetAnyNonZeroConstInt(PHINode &PN) {
   assert(isa<IntegerType>(PN.getType()) && "Expect only intger type phi");
   for (Value *V : PN.operands())
@@ -934,9 +934,9 @@ Instruction *InstCombiner::visitPHINode(
     }
     // When a PHI is used only to be compared with zero, it is safe to replace
     // an incoming value proved as known nonzero with any non-zero constant.
-    // For example, in below code, the incoming value %v can be replaced with
-    // any non-zero constant based on the fact that the PHI is only used to be
-    // compared with zero and %v is a known non-zero value:
+    // For example, in the code below, the incoming value %v can be replaced
+    // with any non-zero constant based on the fact that the PHI is only used to
+    // be compared with zero and %v is a known non-zero value:
     // %v = select %cond, 1, 2
     // %p = phi [%v, BB] ...
     //      icmp eq, %p, 0




More information about the llvm-commits mailing list