Once built, LiveIntervals are immutable. This patch captures that.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
sorry it's long (and mostly boring). The only more involved change is in SplitKit, see getSubRangeForMaskExact, which is also used when building up LIs. Also made it and getSubRangeForMask static, they weren't member functions.
The rest is const sprinkling.
Comment Actions
It's a lot of code churn. But I agree that it's a good thing to be explicit and add a const here. Thanks, LGTM.
llvm/lib/CodeGen/SplitKit.h | ||
---|---|---|
349–366 | May just as well make them simple static helper functions in SplitKit.cpp no other files appear to use them. |
May just as well make them simple static helper functions in SplitKit.cpp no other files appear to use them.