diff options
| author | bors <bors@rust-lang.org> | 2021-10-03 10:34:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-10-03 10:34:57 +0000 |
| commit | 4479cb82e52989480a238e0cf8c67e04b655b36d (patch) | |
| tree | 280d3ac19e09d225644b96007748a417eacebd25 /compiler/rustc_codegen_llvm/src | |
| parent | c24c9067eec3aec8dd2013d24f6cd0dff3ecec4c (diff) | |
| parent | 1139ee32aa803401198c02d5541accbf3fddfc94 (diff) | |
| download | rust-4479cb82e52989480a238e0cf8c67e04b655b36d.tar.gz rust-4479cb82e52989480a238e0cf8c67e04b655b36d.zip | |
Auto merge of #89459 - tspiteri:idiv-overflow-bitand, r=kennytm
Use bitand when checking for signed integer division overflow For `self == Self::MIN && rhs == -1`, LLVM does not realize that this is the same check made by `self / rhs`, so the code generated may have some unnecessary duplication. For `(self == Self::MIN) & (rhs == -1)`, LLVM realizes it is the same check.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
