From 5ab9c0a9270d34b8f7b2eee600b47a62dadf82c0 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 5 Jan 2012 23:58:56 +0000 Subject: 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 --- llvm/test/Transforms/SimplifyCFG/select-gep.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/test/Transforms/SimplifyCFG/select-gep.ll') 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 } -- cgit v1.2.3