You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens in real word code in rust: rust-lang/rust#73825
Clang and zig generates better IR so llvm could optimize const non-mutated arrays to .rodata.
This happens in real word code in rust: rust-lang/rust#73825
Clang and zig generates better IR so llvm could optimize const non-mutated arrays to
.rodata
.Godbolt link of LLVM-IR: https://godbolt.org/z/PGdYYx54r
Consider this:
I expect the above IR optimized to:
I know the IR that rustc generates is poor. I try to improve it but some people wonder if LLVM could do its marvelous job again with current IR.
The text was updated successfully, but these errors were encountered: