diff options
author | Dale Johannesen <dalej@apple.com> | 2007-03-30 21:38:07 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2007-03-30 21:38:07 +0000 |
commit | 4bbd2eefba57847d3b5789eb925d3b27e3147845 (patch) | |
tree | 5b4318f7e442d14ac14ced06ed0dc389abab4ac2 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | d1440c429f6e2120768ba495d5fbc7917b71d982 (diff) | |
download | bcm5719-llvm-4bbd2eefba57847d3b5789eb925d3b27e3147845.tar.gz bcm5719-llvm-4bbd2eefba57847d3b5789eb925d3b27e3147845.zip |
Fix incorrect combination of different loads. Reenable zext-over-truncate
combination.
llvm-svn: 35517
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index bd3ad3f812d..8f90521074c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -2110,9 +2110,7 @@ SDOperand DAGCombiner::visitZERO_EXTEND(SDNode *N) { // fold (zext (truncate (load x))) -> (zext (smaller load x)) // fold (zext (truncate (srl (load x), c))) -> (zext (small load (x+c/n))) - // FIXME: Temporarily disable this for big endian machines until llvm-gcc - // build issue has been resolved. - if (TLI.isLittleEndian() && N0.getOpcode() == ISD::TRUNCATE) { + if (N0.getOpcode() == ISD::TRUNCATE) { SDOperand NarrowLoad = ReduceLoadWidth(N0.Val); if (NarrowLoad.Val) { if (NarrowLoad.Val != N0.Val) |