When the target-independent DAGCombiner inferred a higher alignment for a load,
authorOwen Anderson <resistor@mac.com>
Tue, 5 Feb 2013 06:25:30 +0000 (06:25 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 5 Feb 2013 06:25:30 +0000 (06:25 +0000)
commit429f7ef0c116c0504052b9a6655ef4d973177e9d
tree7eab6bb6277c7a24d30b863d288e44f7096b4980
parenta2de37c897556fbd1f94a3ed84ad27accd8f8deb
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
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/AArch64/func-argpassing.ll
test/CodeGen/X86/divide-by-constant.ll