diff options
| author | Jun Bum Lim <junbuml@codeaurora.org> | 2016-02-11 16:46:13 +0000 |
|---|---|---|
| committer | Jun Bum Lim <junbuml@codeaurora.org> | 2016-02-11 16:46:13 +0000 |
| commit | 10e58e867d297b91cb43c931af5453ea4f43d211 (patch) | |
| tree | e6f7e672d858168f936c36d2fb631b9450a7685c /llvm/lib/Transforms | |
| parent | 85913cca8bbe6e2bccfd216a6eac95e37d521a86 (diff) | |
| download | bcm5719-llvm-10e58e867d297b91cb43c931af5453ea4f43d211.tar.gz bcm5719-llvm-10e58e867d297b91cb43c931af5453ea4f43d211.zip | |
Fixed typo in r260530
llvm-svn: 260541
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp b/llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp index 138a95cb7c8..e3b4aea671f 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp @@ -644,8 +644,8 @@ static bool PHIsEqualValue(PHINode *PN, Value *NonPhiInVal, 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(PHINode &PN) { } // 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 |

