about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-06-09 06:06:06 +0000
committerbors <bors@rust-lang.org>2021-06-09 06:06:06 +0000
commitd45d205d59bd9eaca352e3a8f18c625f47f5838b (patch)
tree0f893fbff81c786d9deea4c34cf594f1b3ecd2ec /compiler/rustc_codegen_llvm/src
parentc8381389ee10e3c0505ccb5bac05382de1b9f99d (diff)
parent2f1c2193d1e9a01adbf5b7886eee229242407dcb (diff)
downloadrust-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