aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-03-29 07:56:46 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-03-29 07:56:46 +0000
commitb0b6c76ffe71fc5d16a38b831ef0eddec02ddbe3 (patch)
tree3ae3f027a701261c610d36339c7a4def1896e0fe /lib
parent616cc663daf965695809213d8cf8e3686e5309c3 (diff)
downloadexternal_llvm-b0b6c76ffe71fc5d16a38b831ef0eddec02ddbe3.zip
external_llvm-b0b6c76ffe71fc5d16a38b831ef0eddec02ddbe3.tar.gz
external_llvm-b0b6c76ffe71fc5d16a38b831ef0eddec02ddbe3.tar.bz2
Disable load width reduction xform of variant (zext (truncate load x)) for
big endian targets until llvm-gcc build issue has been resolved. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35449 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SelectionDAG/DAGCombiner.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 8f90521..bd3ad3f 100644
--- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -2110,7 +2110,9 @@ 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)))
- if (N0.getOpcode() == ISD::TRUNCATE) {
+ // FIXME: Temporarily disable this for big endian machines until llvm-gcc
+ // build issue has been resolved.
+ if (TLI.isLittleEndian() && N0.getOpcode() == ISD::TRUNCATE) {
SDOperand NarrowLoad = ReduceLoadWidth(N0.Val);
if (NarrowLoad.Val) {
if (NarrowLoad.Val != N0.Val)