momchil-velikov wrote:

> Instead it could perform a load with the original type and then emit an LLVM 
> IR `bitcast`, just like it does for "C-style" 
Except that it does not work when aggregate types are involved.
Using `mem2reg,sroa` is a bit better than just `mem2reg`, even though `sroa` 
generates some ridiculous extra bitcasts.

https://github.com/llvm/llvm-project/pull/121801
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to