diff options
| author | bors <bors@rust-lang.org> | 2023-10-24 21:47:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-10-24 21:47:53 +0000 |
| commit | df871fbf053de3a855398964cd05fadbe91cf4fd (patch) | |
| tree | f9bde4acab06d6aad30130ff26aaaca350578b4f /tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.32bit.diff | |
| parent | 151256bd4b577f92922c0fbdf94b12d69cfb08d3 (diff) | |
| parent | 9c85dfa1d755004b5499f45e2fd921c298f90a2e (diff) | |
Auto merge of #115796 - cjgillot:const-prop-rvalue, r=oli-obk
Generate aggregate constants in DataflowConstProp.
Diffstat (limited to 'tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.32bit.diff')
| -rw-r--r-- | tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.32bit.diff | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.32bit.diff b/tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.32bit.diff index 3946e7c7d96..798b0c041b4 100644 --- a/tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.32bit.diff +++ b/tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.32bit.diff @@ -23,7 +23,8 @@ bb0: { StorageLive(_1); - _1 = E::V1(const 0_i32); +- _1 = E::V1(const 0_i32); ++ _1 = const E::V1(0_i32); StorageLive(_2); - _3 = discriminant(_1); - switchInt(move _3) -> [0: bb3, 1: bb1, otherwise: bb2]; @@ -59,5 +60,9 @@ StorageDead(_1); return; } ++ } ++ ++ ALLOC0 (size: 8, align: 4) { ++ 00 00 00 00 00 00 00 00 │ ........ } |
