summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorSteve King <steve@metrokings.com>2015-08-18 23:02:41 +0000
committerSteve King <steve@metrokings.com>2015-08-18 23:02:41 +0000
commitd4c8f70ce182a5bf31ce697aba232b6541ff5450 (patch)
tree81423806487f060c01001211d19de616ecc95347 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parent607efb6c7e39ea5981f4c56fc89d489398e8234c (diff)
downloadbcm5719-llvm-d4c8f70ce182a5bf31ce697aba232b6541ff5450.tar.gz
bcm5719-llvm-d4c8f70ce182a5bf31ce697aba232b6541ff5450.zip
Fix backward operands in call to isTruncateFree() and improve comments.
llvm-svn: 245385
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index d2f6354f712..d031f314f8a 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -9745,8 +9745,8 @@ struct LoadedSlice {
void addSliceGain(const LoadedSlice &LS) {
// Each slice saves a truncate.
const TargetLowering &TLI = LS.DAG->getTargetLoweringInfo();
- if (!TLI.isTruncateFree(LS.Inst->getValueType(0),
- LS.Inst->getOperand(0).getValueType()))
+ if (!TLI.isTruncateFree(LS.Inst->getOperand(0).getValueType(),
+ LS.Inst->getValueType(0)))
++Truncates;
// If there is a shift amount, this slice gets rid of it.
if (LS.Shift)
OpenPOWER on IntegriCloud