diff options
Diffstat (limited to 'llvm/lib')
| -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()) { | 

