mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-11 21:38:19 +00:00
[LoopAccesses] Stash the report from the analysis rather than emitting it
The transformation passes will query this and then emit them as part of their own report. The currently only user LV is modified to do just that. This is part of the patchset that converts LoopAccessAnalysis into an actual analysis pass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229623 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -556,7 +556,7 @@ public:
|
||||
: NumPredStores(0), TheLoop(L), SE(SE), DL(DL),
|
||||
TLI(TLI), TheFunction(F), TTI(TTI), Induction(nullptr),
|
||||
WidestIndTy(nullptr),
|
||||
LAI(F, L, SE, DL, TLI, AA, DT),
|
||||
LAI(L, SE, DL, TLI, AA, DT),
|
||||
HasFunNoNaNAttr(false) {}
|
||||
|
||||
/// This enum represents the kinds of reductions that we support.
|
||||
@ -3825,7 +3825,11 @@ void LoopVectorizationLegality::collectLoopUniforms() {
|
||||
}
|
||||
|
||||
bool LoopVectorizationLegality::canVectorizeMemory() {
|
||||
return LAI.canVectorizeMemory(Strides);
|
||||
bool Success = LAI.canVectorizeMemory(Strides);
|
||||
auto &OptionalReport = LAI.getReport();
|
||||
if (OptionalReport)
|
||||
emitAnalysis(*OptionalReport);
|
||||
return Success;
|
||||
}
|
||||
|
||||
static bool hasMultipleUsesOf(Instruction *I,
|
||||
|
Reference in New Issue
Block a user