about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/patches/0001-Disable-examples.patch
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-10-23 18:05:44 +0000
committerbors <bors@rust-lang.org>2023-10-23 18:05:44 +0000
commit1322f9263410116cc565129bb517a35227c28479 (patch)
tree87e1a0308edeac0e9520d90237ae0bae70282b9c /compiler/rustc_codegen_gcc/patches/0001-Disable-examples.patch
parente2068cdb0964ccbae614ab60cddeed7b24473cdd (diff)
parentdd08dd42e52af9677c3fcf83477d9693883cb221 (diff)
downloadrust-1322f9263410116cc565129bb517a35227c28479.tar.gz
rust-1322f9263410116cc565129bb517a35227c28479.zip
Auto merge of #107009 - cjgillot:jump-threading, r=pnkfelix
Implement jump threading MIR opt

This pass is an attempt to generalize `ConstGoto` and `SeparateConstSwitch` passes into a more complete jump threading pass.

This pass is rather heavy, as it performs a truncated backwards DFS on MIR starting from each `SwitchInt` terminator. This backwards DFS remains very limited, as it only walks through `Goto` terminators.

It is build to support constants and discriminants, and a propagating through a very limited set of operations.

The pass successfully manages to disentangle the `Some(x?)` use case and the DFA use case. It still needs a few tests before being ready.
Diffstat (limited to 'compiler/rustc_codegen_gcc/patches/0001-Disable-examples.patch')
0 files changed, 0 insertions, 0 deletions