================
@@ -1474,8 +1474,10 @@ bool
LoopInterchangeLegality::canInterchangeLoops(unsigned InnerLoopId,
for (auto *BB : OuterLoop->blocks())
for (Instruction &I : *BB)
if (CallInst *CI = dyn_cast<CallInst>(&I)) {
- // readnone functions do not prevent interchanging.
- if (CI->onlyWritesMemory() || isa<PseudoProbeInst>(CI))
+ if (isa<PseudoProbeInst>(CI))
+ continue;
+ // Functions which don't access memories do not prevent interchanging.
----------------
nikic wrote:
```suggestion
// Functions which don't access memory do not prevent interchanging.
```
https://github.com/llvm/llvm-project/pull/200828
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits