summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-04-28 22:24:57 +0000
committerEric Christopher <echristo@gmail.com>2014-04-28 22:24:57 +0000
commit83dd2fad2ac8fd2cdd60573b6adbbe160baf1923 (patch)
tree8afc9186062f8379d91b286a19c25702cf216f7d /llvm/lib/CodeGen
parentf44157d6ab113b88aab4fd0a1efc9ba24d2b7e74 (diff)
downloadbcm5719-llvm-83dd2fad2ac8fd2cdd60573b6adbbe160baf1923.tar.gz
bcm5719-llvm-83dd2fad2ac8fd2cdd60573b6adbbe160baf1923.zip
We already calculate WideVT above, just reuse it.
Patch by Jan Vesely <jan.vesely@rutgers.edu>. llvm-svn: 207455
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 7e4958ef805..dac372fceac 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -3711,8 +3711,7 @@ void SelectionDAGLegalize::ExpandNode(SDNode *Node) {
BottomHalf = DAG.getNode(Ops[isSigned][1], dl, DAG.getVTList(VT, VT), LHS,
RHS);
TopHalf = BottomHalf.getValue(1);
- } else if (TLI.isTypeLegal(EVT::getIntegerVT(*DAG.getContext(),
- VT.getSizeInBits() * 2))) {
+ } else if (TLI.isTypeLegal(WideVT)) {
LHS = DAG.getNode(Ops[isSigned][2], dl, WideVT, LHS);
RHS = DAG.getNode(Ops[isSigned][2], dl, WideVT, RHS);
Tmp1 = DAG.getNode(ISD::MUL, dl, WideVT, LHS, RHS);
OpenPOWER on IntegriCloud