diff options
| author | Florian Hahn <florian.hahn@arm.com> | 2018-04-03 20:54:04 +0000 |
|---|---|---|
| committer | Florian Hahn <florian.hahn@arm.com> | 2018-04-03 20:54:04 +0000 |
| commit | 9467ccf447fd6611cdb1c77c1353a16f27682c5a (patch) | |
| tree | 21dd5bc8865906bdb62e2ad6f19000334f58cb26 /llvm/lib/Transforms | |
| parent | 9114eb40b57bd271eec4a3f935d3072859433eb2 (diff) | |
| download | bcm5719-llvm-9467ccf447fd6611cdb1c77c1353a16f27682c5a.tar.gz bcm5719-llvm-9467ccf447fd6611cdb1c77c1353a16f27682c5a.zip | |
[LoopInterchange] Add remark for calls preventing interchanging.
It also updates test/Transforms/LoopInterchange/call-instructions.ll
to use accesses where we can prove dependence after D35430.
Reviewers: sebpop, karthikthecool, blitz.opensource
Reviewed By: sebpop
Differential Revision: https://reviews.llvm.org/D45206
llvm-svn: 329111
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopInterchange.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp index 69b10890d24..4d3e4563c1e 100644 --- a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp +++ b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp @@ -985,6 +985,13 @@ bool LoopInterchangeLegality::canInterchangeLoops(unsigned InnerLoopId, continue; DEBUG(dbgs() << "Loops with call instructions cannot be interchanged " << "safely."); + ORE->emit([&]() { + return OptimizationRemarkMissed(DEBUG_TYPE, "CallInst", + CI->getDebugLoc(), + CI->getParent()) + << "Cannot interchange loops due to call instruction."; + }); + return false; } |

