diff options
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 | ||||
-rw-r--r-- | test/Transforms/InstCombine/2007-12-18-AddSelCmpSub.ll | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index b059c49f0a..acda89bfe0 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -2135,7 +2135,7 @@ Instruction *InstCombiner::visitAdd(BinaryOperator &I) { // add (select (icmp A m) X Y) A // // add (select X 0 (sub n A)) A -> - // select X A n -> + // select X A n { SelectInst *SI = dyn_cast<SelectInst>(LHS); Value *Other = RHS; diff --git a/test/Transforms/InstCombine/2007-12-18-AddSelCmpSub.ll b/test/Transforms/InstCombine/2007-12-18-AddSelCmpSub.ll index ef38eee30e..94d6c96892 100644 --- a/test/Transforms/InstCombine/2007-12-18-AddSelCmpSub.ll +++ b/test/Transforms/InstCombine/2007-12-18-AddSelCmpSub.ll @@ -35,4 +35,4 @@ entry: %smax = select i1 %tmp16, i32 0, i32 %tmp15 ; <i32> [#uses=1] %tmp12 = add i32 %smax, %a ; <i32> [#uses=1] ret i32 %tmp12 -}
\ No newline at end of file +} |