[PATCH] D129589: [Attributor] Don't crash if getAnalysisResultForFunction() returns null LoopInfo
Augie Fackler via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 12 13:44:30 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9029bda0419f: [Attributor] Don't crash if getAnalysisResultForFunction() returns null LoopInfo (authored by durin42).
Changed prior to commit:
https://reviews.llvm.org/D129589?vs=444064&id=444072#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129589/new/
https://reviews.llvm.org/D129589
Files:
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
Index: llvm/lib/Transforms/IPO/AttributorAttributes.cpp
===================================================================
--- llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+++ llvm/lib/Transforms/IPO/AttributorAttributes.cpp
@@ -6402,6 +6402,8 @@
MayContainIrreducibleControl = mayContainIrreducibleControl(*F, LI);
if (MayContainIrreducibleControl.value())
return true;
+ if (!LI)
+ return true;
return LI->getLoopFor(&BB) != nullptr;
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129589.444072.patch
Type: text/x-patch
Size: 481 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220712/0c5c120f/attachment.bin>
More information about the llvm-commits
mailing list