This is an archive of the discontinued LLVM Phabricator instance.

[SCEV][NFC] Rename MaxNotTaken -> ConstantMaxNotTaken
ClosedPublic

Authored by mkazantsev on Nov 23 2022, 4:49 AM.

Details

Summary

We are going to introduce SymbolicMaxNotTaken, avoid mixing
things up.

Diff Detail

Event Timeline

mkazantsev created this revision.Nov 23 2022, 4:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 23 2022, 4:49 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
mkazantsev requested review of this revision.Nov 23 2022, 4:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 23 2022, 4:49 AM

Sounds reasonable?

FTR, i would like to soon look into symbolic SCEV ranges/bounds
(akin constant ranges, just symbolic, and loop-scope-dependent), to help LoopVectorizer.

llvm/include/llvm/Analysis/ScalarEvolution.h
1315

Here and elsewhere:
const SCEVConstant *ConstantMaxNotTaken;
?

mkazantsev added inline comments.Nov 24 2022, 1:17 AM
llvm/include/llvm/Analysis/ScalarEvolution.h
1315

No, because it can also be SCEVCouldNotCompute which is default. See

assert((isa<SCEVCouldNotCompute>(ConstantMaxNotTaken) ||
        isa<SCEVConstant>(ConstantMaxNotTaken)) &&
       "No point in having a non-constant max backedge taken count!");
This revision was not accepted when it landed; it landed in state Needs Review.Nov 24 2022, 2:26 AM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.