summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2013-04-05 21:20:12 +0000
committerJim Grosbach <grosbach@apple.com>2013-04-05 21:20:12 +0000
commitbdbd73460c77512c99aab7f6d86b06c2fedacd4f (patch)
tree38731fdb391b12a414d1d4816aa49ce67f14313c /llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
parentce1e53e19c7b619f45c0d684656fa6e5d39eb574 (diff)
downloadbcm5719-llvm-bdbd73460c77512c99aab7f6d86b06c2fedacd4f.tar.gz
bcm5719-llvm-bdbd73460c77512c99aab7f6d86b06c2fedacd4f.zip
Tidy up a bit. No functional change.
llvm-svn: 178915
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp b/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
index 121aa1f8d73..f0738b48cbb 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
@@ -838,7 +838,7 @@ Instruction *InstCombiner::visitSelectInst(SelectInst &SI) {
Value *NewFalseOp = NegVal;
if (AddOp != TI)
std::swap(NewTrueOp, NewFalseOp);
- Value *NewSel =
+ Value *NewSel =
Builder->CreateSelect(CondVal, NewTrueOp,
NewFalseOp, SI.getName() + ".p");
@@ -862,7 +862,7 @@ Instruction *InstCombiner::visitSelectInst(SelectInst &SI) {
Value *LHS, *RHS, *LHS2, *RHS2;
if (SelectPatternFlavor SPF = MatchSelectPattern(&SI, LHS, RHS)) {
if (SelectPatternFlavor SPF2 = MatchSelectPattern(LHS, LHS2, RHS2))
- if (Instruction *R = FoldSPFofSPF(cast<Instruction>(LHS),SPF2,LHS2,RHS2,
+ if (Instruction *R = FoldSPFofSPF(cast<Instruction>(LHS),SPF2,LHS2,RHS2,
SI, SPF, RHS))
return R;
if (SelectPatternFlavor SPF2 = MatchSelectPattern(RHS, LHS2, RHS2))
OpenPOWER on IntegriCloud