diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-03-26 00:07:25 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-03-26 00:07:25 +0000 |
commit | 9f689486094303aff800093cf36d95023da02025 (patch) | |
tree | 354a47a79dba636c00b88c6f863e7b1d417d8014 /test/CodeGen/X86/pr2659.ll | |
parent | 1feeadac1baa7c8725dcd8755abfe90d8defb7df (diff) | |
download | llvm-9f689486094303aff800093cf36d95023da02025.tar.gz llvm-9f689486094303aff800093cf36d95023da02025.tar.bz2 llvm-9f689486094303aff800093cf36d95023da02025.tar.xz |
Try trivial remat before the coalescer gives up on a vr / physreg coalescing for fear of tying up a physical register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99575 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/pr2659.ll')
-rw-r--r-- | test/CodeGen/X86/pr2659.ll | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/CodeGen/X86/pr2659.ll b/test/CodeGen/X86/pr2659.ll index 01bb9f14f6..27047dfdfd 100644 --- a/test/CodeGen/X86/pr2659.ll +++ b/test/CodeGen/X86/pr2659.ll @@ -1,4 +1,5 @@ -; RUN: llc < %s -march=x86 -mtriple=i686-apple-darwin9.4.0 | grep movl | count 6 +; RUN: llc < %s -march=x86 -mtriple=i686-apple-darwin9.4.0 | grep movl | count 5 +; RUN: llc < %s -march=x86 -mtriple=i686-apple-darwin9.4.0 | FileCheck %s ; PR2659 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-f80:128:128" @@ -13,6 +14,11 @@ forcond.preheader: ; preds = %entry %cmp44 = icmp eq i32 %k, 0 ; <i1> [#uses=1] br i1 %cmp44, label %afterfor, label %forbody +; CHECK: %forcond.preheader.forbody_crit_edge +; CHECK: movl $1 +; CHECK-NOT: xorl +; CHECK-NEXT: movl $1 + ifthen: ; preds = %entry ret i32 0 |