I'm not sure this is the best way to approach this,
but the situation is rather not very detectable unless we explicitly call it out when refusing to advise to unroll.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Probably loop-unroll should have a generic message along the lines of "runtime loop unrolling disabled for this loop due to target heuristic", if we don't already.
If that isn't clear enough, then I guess this is the only way to emit the diagnostic we want without significantly refactoring the code.
Comment Actions
I guess we don't have any such remark currently:
https://godbolt.org/z/K3h6oK4hq
If that isn't clear enough, then I guess this is the only way to emit the diagnostic we want without significantly refactoring the code.
Note that if i wanted a generic remark then that is what i would have added.
I'd specifically like to have a remark for *this* situation.