From 80b09fe8bc1d2755ef9a6b03b8862a657db42f06 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 10 Apr 2008 02:32:10 +0000 Subject: Teach branch folding pass about implicit_def instructions. Unfortunately we can't just eliminate them since register scavenger expects every register use to be defined. However, we can delete them when there are no intra-block uses. Carefully removing some implicit def's which enable more blocks to be optimized away. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49461 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/2007-06-14-branchfold.ll | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/CodeGen/X86/2007-06-14-branchfold.ll') diff --git a/test/CodeGen/X86/2007-06-14-branchfold.ll b/test/CodeGen/X86/2007-06-14-branchfold.ll index 697d6a3..7756d06 100644 --- a/test/CodeGen/X86/2007-06-14-branchfold.ll +++ b/test/CodeGen/X86/2007-06-14-branchfold.ll @@ -1,8 +1,6 @@ -; RUN: llvm-as < %s | llc -mcpu=i686 | not grep jmp +; RUN: llvm-as < %s | llc -march=x86 -mcpu=i686 | not grep jmp ; check that branch folding understands FP_REG_KILL is not a branch -; ModuleID = 'g.bc' -target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64" target triple = "i686-pc-linux-gnu" %struct.FRAME.c34003a = type { float, float } @report_E = global i8 0 ; [#uses=0] -- cgit v1.1