[SCEV] `getRangeRefIter()`: don't forget to recurse into casts
I'm not really sure the problem can be nicely exposed via a lit test, since we don't give up on range calculation for deeply nested ranges, but if i add an assertion that those opcodes are never encountered, the assertion fails in a number of existing tests. In reality, the iterative approach is still pretty partial: 1. `Seen` should not be there. We want the last instance of expression, not the first one 2. There should be a check that `getRangeRefIter()` does not self-recurse
Loading
Please sign in to comment