Skip to content

Commit

Permalink
Auto merge of #119452 - AngelicosPhosphoros:make_nonzeroint_get_assum…
Browse files Browse the repository at this point in the history
…e_nonzero, r=scottmcm

Add assume into `NonZeroIntX::get`

LLVM currently don't support range metadata for function arguments so it fails to optimize non zero integers using their invariant if they are provided using by-value function arguments.

Related to rust-lang/rust#119422
Related to llvm/llvm-project#76628
Related to rust-lang/rust#49572
  • Loading branch information
bors committed Jan 12, 2024
2 parents 5d0a905 + 208a110 commit f6c599d
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit f6c599d

Please sign in to comment.