diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-08-07 07:14:14 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-08-07 07:14:14 +0000 |
commit | 93a8d43799250813ba44b00ba5f0823db4c5a04e (patch) | |
tree | c5937ee09ce2244ff6c95c83e8053353dd788d58 /test/CodeGen | |
parent | d6053af8ed2d4e9cf4fecd0594e2c2b250287f12 (diff) | |
download | external_llvm-93a8d43799250813ba44b00ba5f0823db4c5a04e.zip external_llvm-93a8d43799250813ba44b00ba5f0823db4c5a04e.tar.gz external_llvm-93a8d43799250813ba44b00ba5f0823db4c5a04e.tar.bz2 |
Another coalescer bug. When a dead copy is eliminated, transfer the kill to a def of the exact register rather than a super-register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/Thumb2/2009-08-07-CoalescerBug.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/Thumb2/2009-08-07-CoalescerBug.ll b/test/CodeGen/Thumb2/2009-08-07-CoalescerBug.ll new file mode 100644 index 0000000..4cd5b1e --- /dev/null +++ b/test/CodeGen/Thumb2/2009-08-07-CoalescerBug.ll @@ -0,0 +1,16 @@ +; RUN: llvm-as < %s | llc -mtriple=armv7-eabi -mattr=+vfp2 +; PR4686 + + %a = type { i32 (...)** } + %b = type { %a } + %c = type { float, float, float, float } + +declare arm_aapcs_vfpcc float @bar(%c*) + +define arm_aapcs_vfpcc void @foo(%b* %x, %c* %y) { +entry: + %0 = call arm_aapcs_vfpcc float @bar(%c* %y) ; <float> [#uses=0] + %1 = fadd float undef, undef ; <float> [#uses=1] + store float %1, float* undef, align 8 + ret void +} |