Attempting fix buildbot
authorSam Parker <sam.parker@arm.com>
Tue, 21 Apr 2020 10:41:16 +0000 (11:41 +0100)
committerSam Parker <sam.parker@arm.com>
Tue, 21 Apr 2020 10:42:21 +0000 (11:42 +0100)
getUserCost is faulting for some builders.

llvm/include/llvm/Analysis/TargetTransformInfoImpl.h

index 339f7c0..1cf625e 100644 (file)
@@ -857,7 +857,7 @@ public:
     case Instruction::FPExt:
     case Instruction::SExt:
     case Instruction::ZExt:
-      if (TargetTTI->getExtCost(I, Operands.back()) == TTI::TCC_Free)
+      if (I && TargetTTI->getExtCost(I, Operands.back()) == TTI::TCC_Free)
         return TTI::TCC_Free;
       break;
     }