[llvm] [LICM] Improve LICM when calls only change Inaccessible memory (PR #169379)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 4 08:03:19 PST 2025
================
@@ -311,6 +311,14 @@ instructionClobbersQuery(const MemoryDef *MD, const MemoryLocation &UseLoc,
}
if (auto *CB = dyn_cast_or_null<CallBase>(UseInst)) {
+ if (auto *CU = dyn_cast_or_null<CallBase>(DefInst)) {
----------------
paulwalker-arm wrote:
```suggestion
if (auto *CU = dyn_cast<CallBase>(DefInst)) {
```
because `DefInst` cannot be null?
https://github.com/llvm/llvm-project/pull/169379
More information about the llvm-commits
mailing list