[llvm] r219347 - Remove dead call to getTypeToTransformTo. The result is

Eric Christopher echristo at gmail.com
Wed Oct 8 15:25:45 PDT 2014


Author: echristo
Date: Wed Oct  8 17:25:45 2014
New Revision: 219347

URL: http://llvm.org/viewvc/llvm-project?rev=219347&view=rev
Log:
Remove dead call to getTypeToTransformTo. The result is
unused.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp?rev=219347&r1=219346&r2=219347&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp Wed Oct  8 17:25:45 2014
@@ -2000,9 +2000,7 @@ bool FastISel::handlePHINodesInSuccessor
       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;
         }





More information about the llvm-commits mailing list