diff options
| author | Dan Gohman <gohman@apple.com> | 2009-01-20 01:06:45 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-01-20 01:06:45 +0000 |
| commit | 161b7b66acf5664f25dfedac867286a62219fd9f (patch) | |
| tree | bfa2e6b2842a4c94a7e0630332ad99f16c6386c1 /llvm/lib/CodeGen/SelectionDAG | |
| parent | 9789e1ebcb475e9bbfab7b4ea2f020a7cac1c542 (diff) | |
| download | bcm5719-llvm-161b7b66acf5664f25dfedac867286a62219fd9f.tar.gz bcm5719-llvm-161b7b66acf5664f25dfedac867286a62219fd9f.zip | |
Fix a dagcombine to not generate loads of non-round integer types,
as its comment says, even in the case where it will be generating
extending loads. This fixes PR3216.
llvm-svn: 62557
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 0d90fc07487..6c5d386f029 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -3343,7 +3343,7 @@ SDValue DAGCombiner::ReduceLoadWidth(SDNode *N) { // Do not generate loads of non-round integer types since these can // be expensive (and would be wrong if the type is not byte sized). - if (isa<LoadSDNode>(N0) && N0.hasOneUse() && VT.isRound() && + if (isa<LoadSDNode>(N0) && N0.hasOneUse() && EVT.isRound() && cast<LoadSDNode>(N0)->getMemoryVT().getSizeInBits() > EVTBits && // Do not change the width of a volatile load. !cast<LoadSDNode>(N0)->isVolatile()) { |

