about summary refs log tree commit diff
path: root/tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.64bit.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-10-24 21:47:53 +0000
committerbors <bors@rust-lang.org>2023-10-24 21:47:53 +0000
commitdf871fbf053de3a855398964cd05fadbe91cf4fd (patch)
treef9bde4acab06d6aad30130ff26aaaca350578b4f /tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.64bit.diff
parent151256bd4b577f92922c0fbdf94b12d69cfb08d3 (diff)
parent9c85dfa1d755004b5499f45e2fd921c298f90a2e (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.64bit.diff')
-rw-r--r--tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.64bit.diff7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.64bit.diff b/tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.64bit.diff
index 3946e7c7d96..798b0c041b4 100644
--- a/tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.64bit.diff
+++ b/tests/mir-opt/dataflow-const-prop/enum.simple.DataflowConstProp.64bit.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                         │ ........
   }