diff options
author | Owen Anderson <resistor@mac.com> | 2013-02-05 06:25:30 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2013-02-05 06:25:30 +0000 |
commit | a47fdbb032d342a2a13c665a060ca9a115ecd506 (patch) | |
tree | 0dc6e41c91c938eb2cd2c7aecf7806ae475b6455 /llvm/test/CodeGen/X86/divide-by-constant.ll | |
parent | 03cb13751fc15f5e26c5e77e8c0197513bffc82a (diff) | |
download | bcm5719-llvm-a47fdbb032d342a2a13c665a060ca9a115ecd506.tar.gz bcm5719-llvm-a47fdbb032d342a2a13c665a060ca9a115ecd506.zip |
When the target-independent DAGCombiner inferred a higher alignment for a load,
it would replace the load with one with the higher alignment. However, it did
not place the new load in the worklist, which prevented later DAG combines in
the same phase (for example, target-specific combines) from ever seeing it.
This patch corrects that oversight, and updates some tests whose output changed
due to slightly different DAGCombine outputs.
llvm-svn: 174343
Diffstat (limited to 'llvm/test/CodeGen/X86/divide-by-constant.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/divide-by-constant.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/X86/divide-by-constant.ll b/llvm/test/CodeGen/X86/divide-by-constant.ll index 8e7c13d8efa..9669d97cb7f 100644 --- a/llvm/test/CodeGen/X86/divide-by-constant.ll +++ b/llvm/test/CodeGen/X86/divide-by-constant.ll @@ -56,9 +56,9 @@ entry: %div = sdiv i16 %x, 10 ret i16 %div ; CHECK: test6: -; CHECK: imull $26215, %eax, %eax -; CHECK: shrl $31, %ecx -; CHECK: sarl $18, %eax +; CHECK: imull $26215, %eax, %ecx +; CHECK: sarl $18, %ecx +; CHECK: shrl $15, %eax } define i32 @test7(i32 %x) nounwind { |