aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/2007-06-14-branchfold.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-04-10 02:32:10 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-04-10 02:32:10 +0000
commit80b09fe8bc1d2755ef9a6b03b8862a657db42f06 (patch)
treecf8afab9e8ba4762f875e03061b01171fb14d749 /test/CodeGen/X86/2007-06-14-branchfold.ll
parent0c1963099f350415a2d091ace8ff5f61b8592910 (diff)
downloadexternal_llvm-80b09fe8bc1d2755ef9a6b03b8862a657db42f06.zip
external_llvm-80b09fe8bc1d2755ef9a6b03b8862a657db42f06.tar.gz
external_llvm-80b09fe8bc1d2755ef9a6b03b8862a657db42f06.tar.bz2
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
Diffstat (limited to 'test/CodeGen/X86/2007-06-14-branchfold.ll')
-rw-r--r--test/CodeGen/X86/2007-06-14-branchfold.ll4
1 files changed, 1 insertions, 3 deletions
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 ; <i8*> [#uses=0]