srpande wrote:

> > > Unused loop invariant loads were not sunk from preheader to exit block, 
> > > increasing live range.
> > 
> > 
> > What live range? If the result is unused, how can it contribute to register 
> > pressure in the loop body?
> 
> I believe "unused" here refers to "unused inside the loop, but used after the 
> loop".

That is true. With the large loop body (possibly unrolled), "live range" got 
extended instruction from preheader got moved passed the body of the loop after 
this sunk subpass.

https://github.com/llvm/llvm-project/pull/157559
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to