rust/src/librustc_codegen_ssa
bors 2bac92bba1 Auto merge of #74533 - nikic:issue-74425, r=eddyb
Emit == null instead of <= null for niche check

When the niche maximum is zero, emit a "== zero" check instead of a "<= zero" check. In particular, this avoids the awkward case of "<= null". While LLVM does canonicalize this to "== null", this apparently doesn't happen for constant expressions, leading to the issue in #74425. While that can be addressed on the LLVM side, it still seems prudent to emit sensible IR here, because this will allow null checks to be optimized earlier in the pipeline.

Fixes #74425.
2020-08-08 13:33:53 +00:00
..
back Auto merge of #74932 - nnethercote:rm-ast-session-globals, r=petrochenkov 2020-08-08 05:58:57 +00:00
coverageinfo Completes support for coverage in external crates 2020-08-04 11:06:54 -07:00
debuginfo debuginfo: add type metadata for params 2020-07-20 11:23:31 +01:00
mir Auto merge of #74533 - nikic:issue-74425, r=eddyb 2020-08-08 13:33:53 +00:00
traits Auto merge of #75037 - richkadel:llvm-coverage-map-gen-5.2, r=wesleywiser 2020-08-05 05:08:19 +00:00
base.rs Avoid "whitelist" 2020-07-10 07:39:28 -04:00
Cargo.toml Move from log to tracing 2020-07-31 22:38:20 +02:00
common.rs Prepare for LLVM 11 2020-06-25 18:52:41 -07:00
glue.rs rustc -> rustc_middle part 2 2020-03-30 07:16:56 +02:00
lib.rs FunctionCoverage: improve type checking with newtype_index types 2020-07-28 17:45:58 -07:00
meth.rs [AVR] Correctly set the pointer address space when constructing pointers to functions 2020-07-22 05:16:22 +12:00
mono_item.rs Change SymbolName::name to a &str. 2020-07-15 14:37:55 +10:00
README.md fix rustc-dev-guide url in src/librustc_codegen_ssa 2020-04-10 22:48:34 +08:00

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.