summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/divide-by-constant.ll
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2013-02-05 06:25:30 +0000
committerOwen Anderson <resistor@mac.com>2013-02-05 06:25:30 +0000
commit429f7ef0c116c0504052b9a6655ef4d973177e9d (patch)
tree7eab6bb6277c7a24d30b863d288e44f7096b4980 /test/CodeGen/X86/divide-by-constant.ll
parenta2de37c897556fbd1f94a3ed84ad27accd8f8deb (diff)
downloadllvm-429f7ef0c116c0504052b9a6655ef4d973177e9d.tar.gz
llvm-429f7ef0c116c0504052b9a6655ef4d973177e9d.tar.bz2
llvm-429f7ef0c116c0504052b9a6655ef4d973177e9d.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174343 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/divide-by-constant.ll')
-rw-r--r--test/CodeGen/X86/divide-by-constant.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CodeGen/X86/divide-by-constant.ll b/test/CodeGen/X86/divide-by-constant.ll
index 8e7c13d8ef..9669d97cb7 100644
--- a/test/CodeGen/X86/divide-by-constant.ll
+++ b/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 {