bcardosolopes wrote:

> Since h is external, LLVM cannot take the risk to eliminate the reload from 
> alloca before calling use, despite that the reload is indeed unnecessary 
> according to the C++ standard

For the testcase in hand, If cir.alloca was marked as const, wouldn't this 
allow a LoadOp folder to reuse any existing previous use (if available) 
instead? 

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

Reply via email to