Skip to content

Commit

Permalink
Auto merge of #111768 - oli-obk:pair_const_llvm, r=cjgillot
Browse files Browse the repository at this point in the history
Optimize scalar and scalar pair representations loaded from ByRef in llvm

in rust-lang/rust#105653 I noticed that we were generating suboptimal LLVM IR if we had a `ConstValue::ByRef` that could be represented by a `ScalarPair`. Before rust-lang/rust#105653 this is probably rare, but after it, every slice will go down this suboptimal code path that requires LLVM to untangle a bunch of indirections and translate static allocations that are only used once to read a scalar pair from.
  • Loading branch information
bors committed May 30, 2023
2 parents f505fa9 + d9fe95e commit 935a476
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 935a476

Please sign in to comment.