================
@@ -8372,10 +8372,15 @@ static bool isGuaranteedNotToBeUndefOrPoison(
return true;
if (const auto *CB = dyn_cast<CallBase>(V)) {
- if (CB->hasRetAttr(Attribute::NoUndef) ||
- CB->hasRetAttr(Attribute::Dereferenceable) ||
- CB->hasRetAttr(Attribute::DereferenceableOrNull))
- return true;
+ const auto *FP = dyn_cast<FPMathOperator>(CB);
+ bool HasPostAttrPoison = includesPoison(Kind) &&
+ ((FP && (FP->hasNoNaNs() || FP->hasNoInfs())) ||
+ CB->hasMetadata(LLVMContext::MD_range));
----------------
nikic wrote:
These changes shouldn't be there anymore?
https://github.com/llvm/llvm-project/pull/239912
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits