diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-05 20:20:26 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-05 20:20:26 +0000 |
commit | 18fd84c79ab8692e4ce3b5227780784889ca8361 (patch) | |
tree | 490ee4fad62408fe2951258240a93121d5e5846b /llvm/test/CodeGen | |
parent | 3d50b2f7a6e682e6a58bf32f09cf46c8092a3fa0 (diff) | |
download | bcm5719-llvm-18fd84c79ab8692e4ce3b5227780784889ca8361.tar.gz bcm5719-llvm-18fd84c79ab8692e4ce3b5227780784889ca8361.zip |
When dead code elimination removes all but one use, try to fold the single def into the remaining use.
Rematerialization can leave single-use loads behind that we might as well fold whenever possible.
llvm-svn: 128918
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r-- | llvm/test/CodeGen/X86/constant-pool-remat-0.ll | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/constant-pool-remat-0.ll b/llvm/test/CodeGen/X86/constant-pool-remat-0.ll index f1b061f65a3..4be14d2128e 100644 --- a/llvm/test/CodeGen/X86/constant-pool-remat-0.ll +++ b/llvm/test/CodeGen/X86/constant-pool-remat-0.ll @@ -1,4 +1,5 @@ ; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s +; RUN: llc < %s -mtriple=x86_64-linux -regalloc=greedy | FileCheck %s ; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s ; CHECK: LCPI ; CHECK: LCPI |