summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorNadav Rotem <nadav.rotem@intel.com>2011-05-27 21:03:13 +0000
committerNadav Rotem <nadav.rotem@intel.com>2011-05-27 21:03:13 +0000
commita9effb13ddc7b008a99981b3639a65ec91a1a35c (patch)
tree246ee9bfbd4824473fe9543dfc3981a923fbec5a /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parentd368a84c916c88c1874efff9800311717953fa7d (diff)
downloadbcm5719-llvm-a9effb13ddc7b008a99981b3639a65ec91a1a35c.tar.gz
bcm5719-llvm-a9effb13ddc7b008a99981b3639a65ec91a1a35c.zip
Refactor getActionType and getTypeToTransformTo ; place all of the 'decision'
code in one place. Re-apply 131534 and fix the multi-step promotion of integers. llvm-svn: 132217
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index d1e65b5c3f5..62d777ca331 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -91,7 +91,7 @@ public:
/// it is already legal or we need to expand it into multiple registers of
/// smaller integer type, or we need to promote it to a larger type.
LegalizeAction getTypeAction(EVT VT) const {
- return (LegalizeAction)ValueTypeActions.getTypeAction(VT);
+ return (LegalizeAction)TLI.getTypeAction(*DAG.getContext(), VT);
}
/// isTypeLegal - Return true if this type is legal on this target.
OpenPOWER on IntegriCloud