[llvm] 32c0561 - Attempting fix buildbot
Sam Parker via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 21 03:44:12 PDT 2020
Author: Sam Parker
Date: 2020-04-21T11:42:21+01:00
New Revision: 32c0561e0cf395bf3b7870aaa680bcab2cd21328
URL: https://github.com/llvm/llvm-project/commit/32c0561e0cf395bf3b7870aaa680bcab2cd21328
DIFF: https://github.com/llvm/llvm-project/commit/32c0561e0cf395bf3b7870aaa680bcab2cd21328.diff
LOG: Attempting fix buildbot
getUserCost is faulting for some builders.
Added:
Modified:
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h b/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
index 339f7c06b005..1cf625e60d3f 100644
--- a/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
+++ b/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
@@ -857,7 +857,7 @@ class TargetTransformInfoImplCRTPBase : public TargetTransformInfoImplBase {
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;
}
More information about the llvm-commits
mailing list