The only field they modify is the corresponding cache, which in this case
should be marked as mutable. This will allow us to verify loop disposition
which is not currently something that we do.
Details
Details
- Reviewers
lebedev.ri nikic fhahn reames
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I'm not a fan of this -- I'd rather have the const_cast when you call this with UseCache=false. The thing is that SCEV caching is not at all transparent, it is order dependent and riddled with invalidation issues (as you know ^^), so pretending that that these are const does not feel right.
Comment Actions
const_cast may lead to UB unfortunately, and this is the type of bugs I don't want to deal with. :)
Because now verifier only calls it on a local object, I don't care enough if it goes or not. Let's just abandon it.