StarOne01

Results comments of StarOne01

Dug into this a bit, turns out it's not a one-off bug, there's a related open issue (#55057) about the same "checked once per template pattern, once per instantiation" thing...

running `loop-invariant code motion` pass before `scf-for-loop-range-folding` solves this and it is the only job of the pass, do we need `scf-for-loop-range-folding` to handle it? @banach-space @matthias-springer

i don't have the permission to close this, i request someone with access to do so.

I reproduced the crash and verified that changing `resType` in `lowerParallel` from `VectorType` to `Type` makes it emit valid IR without crashing, and the MLIR test suite passes with the...

Thank you @FedericoBruzzone, that cleared it up. The naming is what confused me: `lowerParallel` sounds like it only handles parallel iterators, and `lowerReduction` sounds like it handles every reduction, so...

bing bing, i remember seeing a very similar repro somewhere. yes! i'd like to work there (again but deeper) :o