diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-04-09 20:57:25 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-04-09 20:57:25 +0000 |
commit | 7e073baedb8232b9519dbe15ea141ff98ccfe6ae (patch) | |
tree | 0c9ef7c93ae3eb5aac992a8dc7624009c360ab2a /test/CodeGen/X86/ins_subreg_coalesce-2.ll | |
parent | 7d8143f0ef35fccc98a624525b4517eb790e2d14 (diff) |
- More aggressively coalescing away copies whose source is defined by an implicit_def.
- Added insert_subreg coalescing support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49448 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/ins_subreg_coalesce-2.ll')
-rw-r--r-- | test/CodeGen/X86/ins_subreg_coalesce-2.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/ins_subreg_coalesce-2.ll b/test/CodeGen/X86/ins_subreg_coalesce-2.ll new file mode 100644 index 0000000000..5c0b0d3d3e --- /dev/null +++ b/test/CodeGen/X86/ins_subreg_coalesce-2.ll @@ -0,0 +1,7 @@ +; RUN: llvm-as < %s | llc -march=x86-64 | not grep movw + +define i16 @test5(i16 %f12) nounwind { + %f11 = shl i16 %f12, 2 ; <i16> [#uses=1] + %tmp7.25 = ashr i16 %f11, 8 ; <i16> [#uses=1] + ret i16 %tmp7.25 +} |