[VE] Adapt D77995 CallSite removal
authorFangrui Song <maskray@google.com>
Tue, 14 Apr 2020 02:54:39 +0000 (19:54 -0700)
committerFangrui Song <maskray@google.com>
Tue, 14 Apr 2020 02:54:49 +0000 (19:54 -0700)
llvm/lib/Target/VE/VEISelLowering.cpp

index e8f98ab..8c611f7 100644 (file)
@@ -447,7 +447,7 @@ SDValue VETargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
 
   // Set inreg flag manually for codegen generated library calls that
   // return float.
-  if (CLI.Ins.size() == 1 && CLI.Ins[0].VT == MVT::f32 && !CLI.CS)
+  if (CLI.Ins.size() == 1 && CLI.Ins[0].VT == MVT::f32 && !CLI.CB)
     CLI.Ins[0].Flags.setInReg();
 
   RVInfo.AnalyzeCallResult(CLI.Ins, RetCC_VE);