about summary refs log tree commit diff
path: root/tests/mir-opt/gvn_const_eval_polymorphic.optimize_true.GVN.diff
blob: dc337d43fb04d5ed93da8465a112b5e3de1670eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- // MIR for `optimize_true` before GVN
+ // MIR for `optimize_true` after GVN
  
  fn optimize_true() -> bool {
      let mut _0: bool;
  
      bb0: {
-         _0 = Eq(const optimize_true::<T>::{constant#0}, const optimize_true::<T>::{constant#1});
+         _0 = const true;
          return;
      }
  }