Page MenuHomePhabricator

[NFC] [DA] Refactoring getIndexExpressionsFromGEP
ClosedPublic

Authored by bmahjour on Feb 4 2020, 2:28 PM.

Details

Summary

This patch moves the getIndexExpressionsFromGEP function from polly into ScalarEvolution so that both polly and DependenceAnalysis can use it for the purpose of subscript delinearization when the array sizes are not parametric.

Diff Detail

Event Timeline

bmahjour created this revision.Feb 4 2020, 2:28 PM
Meinersbur accepted this revision.Feb 17 2020, 10:01 AM
Meinersbur added inline comments.
llvm/lib/Analysis/ScalarEvolution.cpp
11452

[style] It might be useful to return true here and false at the bail-outs. Otherwise, the return here is redundant.

This revision is now accepted and ready to land.Feb 17 2020, 10:01 AM
This revision was automatically updated to reflect the committed changes.