about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-06 14:21:11 +0000
committerbors <bors@rust-lang.org>2020-09-06 14:21:11 +0000
commit4b65872d272875adb298b6dc12d5e4e79cf8e263 (patch)
treef142662a2a983e9f0b40196b3edbf619aab90ea5 /compiler/rustc_codegen_llvm/src
parentaa81d32165dc9f0952bc520f223503aedd755b31 (diff)
parent9b0fc6202bf295e2518f7a781ca069c71c81698f (diff)
downloadrust-4b65872d272875adb298b6dc12d5e4e79cf8e263.tar.gz
rust-4b65872d272875adb298b6dc12d5e4e79cf8e263.zip
Auto merge of #76067 - simonvandel:peephole-ne, r=wesleywiser
MIR peephole optimize {Ne, Eq}(_1, false) into _1

Add peephole optimization that simplifies Ne(_1, false) and Ne(false, _1) into _1. Similarly handles Eq(_1, true) and Eq(true, _1).

This was observed emitted from the MatchBranchSimplification pass.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions