summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-10-08 22:25:45 +0000
committerEric Christopher <echristo@gmail.com>2014-10-08 22:25:45 +0000
commitffcbe9b04849b7679742c924b334102a1fb08cd6 (patch)
tree1f3d3d632c6e8e4ebf58ee0fb792b630f895ec87 /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
parentf76aeaec66aaa6d8e4fc2e13d1dfb63249ff5652 (diff)
downloadbcm5719-llvm-ffcbe9b04849b7679742c924b334102a1fb08cd6.tar.gz
bcm5719-llvm-ffcbe9b04849b7679742c924b334102a1fb08cd6.zip
Remove dead call to getTypeToTransformTo. The result is
unused. llvm-svn: 219347
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index 72390a94bfe..ab3dbfa40bc 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -2000,9 +2000,7 @@ bool FastISel::handlePHINodesInSuccessorBlocks(const BasicBlock *LLVMBB) {
EVT VT = TLI.getValueType(PN->getType(), /*AllowUnknown=*/true);
if (VT == MVT::Other || !TLI.isTypeLegal(VT)) {
// Handle integer promotions, though, because they're common and easy.
- if (VT == MVT::i1 || VT == MVT::i8 || VT == MVT::i16)
- VT = TLI.getTypeToTransformTo(LLVMBB->getContext(), VT);
- else {
+ if (!(VT == MVT::i1 || VT == MVT::i8 || VT == MVT::i16)) {
FuncInfo.PHINodesToUpdate.resize(FuncInfo.OrigNumPHINodesToUpdate);
return false;
}
OpenPOWER on IntegriCloud