Simplify ReduceLoadWidth's logic: it doesn't need several different
authorDan Gohman <gohman@apple.com>
Wed, 21 Jan 2009 15:17:51 +0000 (15:17 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 21 Jan 2009 15:17:51 +0000 (15:17 +0000)
commit764fd0cbc8a0ee512a9352cfeb123e8778542d28
treecea2b7ab9429b724530f208946fbd810d48b5531
parent1ef4d8f7ee60f724eff2175ed22f75a60eb8d50d
Simplify ReduceLoadWidth's logic: it doesn't need several different
special cases after producing the new reduced-width load, because the
new load already has the needed adjustments built into it. This fixes
several bugs due to the special cases, including PR3317.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62692 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/pr3317.ll [new file with mode: 0644]