diff options
| author | bors <bors@rust-lang.org> | 2021-06-09 06:06:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-06-09 06:06:06 +0000 |
| commit | d45d205d59bd9eaca352e3a8f18c625f47f5838b (patch) | |
| tree | 0f893fbff81c786d9deea4c34cf594f1b3ecd2ec /compiler/rustc_codegen_llvm/src | |
| parent | c8381389ee10e3c0505ccb5bac05382de1b9f99d (diff) | |
| parent | 2f1c2193d1e9a01adbf5b7886eee229242407dcb (diff) | |
| download | rust-d45d205d59bd9eaca352e3a8f18c625f47f5838b.tar.gz rust-d45d205d59bd9eaca352e3a8f18c625f47f5838b.zip | |
Auto merge of #86107 - Smittyvb:peephole-optim-eq-bool, r=wesleywiser
Peephole optimize `x == false` and `x != true` This adds peephole optimizations to make `x == false`, `false == x`, `x != true`, and `true != x` get optimized to `!x` in the `instcombine` MIR pass. That pass currently handles `x == true` -> `x` already.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
