Brendon Cahoon

Results comments of Brendon Cahoon

It's been a long time so I may not remember correctly, but I believe multipleIterations was added to improve the pipeliner results for very specific cases rather than added for...

> > But I'm still not sure what the case multipleIterations addresses. Maybe the return value of multipleIteration should be `S.getSUnit()`, not `P.getSUnit()`? Here's an example: ``` x = phi(-,...

> I think multipleIterations should return `S.getSUnit()`. I believe the case with ` = inst3 x` is disallowed by the check after the call to `multipleIterations` with the following https://github.com/llvm/llvm-project/blob/5475834737663c0da3c444fcf1c8ab5567c39136/llvm/lib/CodeGen/MachinePipeliner.cpp#L3033...

> I think this is not a problem. What we actually interested in is `y = inst2`, not `= inst3 x`, right? I guess what we really want to achieve...

I approve of this request as well.

This has been fixed with the following PR https://github.com/llvm/llvm-project/pull/165602, which landed in Nov. 25.

Closing as this has been fixed. Please reopen if anything additional is needed.

Hi @bangtianliu , thanks for that example. I'd like to take a deeper look at this to understand why the compiler ends up at occupancy 1, but occupancy 2 with...