]> granicus.if.org Git - llvm/commitdiff
[SelectionDAGBuilder] Simplify loop in visitSelect back to how it was before r255558.
authorCraig Topper <craig.topper@intel.com>
Thu, 12 Sep 2019 21:00:32 +0000 (21:00 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 12 Sep 2019 21:00:32 +0000 (21:00 +0000)
This code was changed to accomodate fp128 being softened to itself
during type legalization on x86-64. This was done in order to create
libcalls while having fp128 as a legal type. We're now doing the
libcall creation during LegalizeDAG and the type legalization changes
to enable the old behavior have been removed. So this change to
SelectionDAGBuilder is no longer needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371771 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

index 86e3020d6d2bcb55dc10597b24971316f4118b78..ce3255c081be3653bed46c394e2324d41b50fb9f 100644 (file)
@@ -3267,8 +3267,7 @@ void SelectionDAGBuilder::visitSelect(const User &I) {
 
     // We care about the legality of the operation after it has been type
     // legalized.
-    while (TLI.getTypeAction(Ctx, VT) != TargetLoweringBase::TypeLegal &&
-           VT != TLI.getTypeToTransformTo(Ctx, VT))
+    while (TLI.getTypeAction(Ctx, VT) != TargetLoweringBase::TypeLegal)
       VT = TLI.getTypeToTransformTo(Ctx, VT);
 
     // If the vselect is legal, assume we want to leave this as a vector setcc +