From 8271be9a1da41ac9221fc13831a9166ddf53a002 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 12 Oct 2016 19:50:57 +0000 Subject: Do not remove implicit defs in BranchFolder Branch folder removes implicit defs if they are the only non-branching instructions in a block, and the branches do not use the defined registers. The problem is that in some cases these implicit defs are required for the liveness information to be correct. Differential Revision: https://reviews.llvm.org/D25478 llvm-svn: 284036 --- llvm/test/Transforms/LoopStrengthReduce/X86/2012-01-13-phielim.ll | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/test/Transforms/LoopStrengthReduce') diff --git a/llvm/test/Transforms/LoopStrengthReduce/X86/2012-01-13-phielim.ll b/llvm/test/Transforms/LoopStrengthReduce/X86/2012-01-13-phielim.ll index bdc36bdaf2e..096d89779da 100644 --- a/llvm/test/Transforms/LoopStrengthReduce/X86/2012-01-13-phielim.ll +++ b/llvm/test/Transforms/LoopStrengthReduce/X86/2012-01-13-phielim.ll @@ -100,6 +100,7 @@ while.end: ; preds = %entry ; CHECK-NEXT: in Loop: Header ; CHECK-NEXT: incq ; CHECK-NEXT: %for.body3.us.i +; CHECK-NEXT: Parent Loop ; CHECK-NEXT: Inner Loop ; CHECK: testb ; CHECK: je -- cgit v1.2.3