summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SimplifyCFG/select-gep.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2012-01-05 23:58:56 +0000
committerDan Gohman <gohman@apple.com>2012-01-05 23:58:56 +0000
commit5ab9c0a9270d34b8f7b2eee600b47a62dadf82c0 (patch)
treecb82d72a9e8d1086a42a7d6b466c441e130cb9b5 /llvm/test/Transforms/SimplifyCFG/select-gep.ll
parent3e8cd274e8a180f2c34fa6a672b982211ef05a31 (diff)
downloadbcm5719-llvm-5ab9c0a9270d34b8f7b2eee600b47a62dadf82c0.tar.gz
bcm5719-llvm-5ab9c0a9270d34b8f7b2eee600b47a62dadf82c0.zip
Fix SpeculativelyExecuteBB to either speculate all or none of the phis
present in the bottom of the CFG triangle, as the transformation isn't ever valuable if the branch can't be eliminated. Also, unify some heuristics between SimplifyCFG's multiple if-converters, for consistency. This fixes rdar://10627242. llvm-svn: 147630
Diffstat (limited to 'llvm/test/Transforms/SimplifyCFG/select-gep.ll')
-rw-r--r--llvm/test/Transforms/SimplifyCFG/select-gep.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/select-gep.ll b/llvm/test/Transforms/SimplifyCFG/select-gep.ll
index 009f05e5574..7654d0271a9 100644
--- a/llvm/test/Transforms/SimplifyCFG/select-gep.ll
+++ b/llvm/test/Transforms/SimplifyCFG/select-gep.ll
@@ -35,6 +35,6 @@ if.end:
ret i8* %x.addr
; CHECK: @test2
-; CHECK: %x.addr = select i1 %cmp, i8* %incdec.ptr, i8* %y
-; CHECK: ret i8* %x.addr
+; CHECK: %incdec.ptr.y = select i1 %cmp, i8* %incdec.ptr, i8* %y
+; CHECK: ret i8* %incdec.ptr.y
}
OpenPOWER on IntegriCloud