summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commitccee35fd0d13b991cd612f9b408754004daacc42 (patch)
treeb2ec9c52a3e89b760db787d3dae4c5922f767fdc /llvm/lib/CodeGen
parent8f592160c023baa1a9a424e1179b68c157ee4a0a (diff)
downloadbcm5719-llvm-ccee35fd0d13b991cd612f9b408754004daacc42.tar.gz
bcm5719-llvm-ccee35fd0d13b991cd612f9b408754004daacc42.zip
Disable load width reduction xform of variant (zext (truncate load x)) for
big endian targets until llvm-gcc build issue has been resolved. llvm-svn: 35449
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 8f90521074c..bd3ad3f812d 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud