about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorTrevor Spiteri <tspiteri@ieee.org>2021-10-05 15:15:24 +0200
committerTrevor Spiteri <tspiteri@ieee.org>2021-10-05 15:15:24 +0200
commit4ec0377d6a9118b41df4fb587dc0b7d1fc53656f (patch)
treee309ca8a04628bf7874642cdc1921fdd84c92293 /compiler/rustc_codegen_llvm/src
parent074f63648bd2368d5ca19aed02b5763a144e5d05 (diff)
downloadrust-4ec0377d6a9118b41df4fb587dc0b7d1fc53656f.tar.gz
rust-4ec0377d6a9118b41df4fb587dc0b7d1fc53656f.zip
for signed overflowing remainder, delay comparing lhs with MIN
Since the wrapped remainder is going to be 0 for all cases when the rhs is -1,
there is no need to divide in this case. Comparing the lhs with MIN is only done
for the overflow bool. In particular, this results in better code generation for
wrapping remainder, which discards the overflow bool completely.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions