Fix insertion of SelectInsts.
authorBrian Gaeke <gaeke@uiuc.edu>
Wed, 7 Apr 2004 18:31:47 +0000 (18:31 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Wed, 7 Apr 2004 18:31:47 +0000 (18:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12760 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9PreSelection.cpp

index 2677d4ce26bf8e285859343036c4719e15bca1ec..2c265a9238d20a6274d638f5ec0aabd3028120ad 100644 (file)
@@ -136,7 +136,7 @@ static Instruction* DecomposeConstantExpr(ConstantExpr* CE,
       S2 = CE->getOperand (2);
       if (ConstantExpr* CEarg = dyn_cast<ConstantExpr> (S2))
         S2 = DecomposeConstantExpr (CEarg, insertBefore);
-      return new SelectInst (C, S1, S2);
+      return new SelectInst (C, S1, S2, "constantSelect", &insertBefore);
     }
     
     default:                            // must be a binary operator