1 /* { dg-options "-Os -fgimple -fdump-tree-pre-details -fdisable-tree-evrp -fno-tree-dse" } */
3 #if __SIZEOF_INT__ == 2
4 #define unsigned __UINT32_TYPE__
5 #define int __INT32_TYPE__
11 void __GIMPLE(ssa
, startwith("pre")) fn2 ()
19 a
= _Literal (unsigned)30;
25 if (j_6(D
) != _Literal (int)2147483647)
31 iftmp2_8
= j_6(D
) + _Literal (int)1;
35 b_lsm6_10
= _Literal (int)2147483647;
39 if (c0_1
!= _Literal (int) 0)
53 /* This used to be a C based testcase but ccp3 would now would remove
54 the setting of iftmp2_8 (in the above gimple) which would cause PRE
55 not to test what PRE was doing incorrectly. The original code is below. */
56 /* Disable tree-evrp because the new version of evrp sees
58 if (j_8(D) != 2147483647)
63 iftmp.2_11 = j_8(D) + 1;
65 # iftmp.2_12 = PHI <j_8(D)(3), iftmp.2_11(4)>
67 EVRP now recognizes a constant can be propagated into the 3->5 edge and
69 # iftmp.2_12 = PHI <2147483647(3), iftmp.2_11(4)>
70 which causes the situation being tested to dissapear before we get to PRE. */
72 /* Likewise disable DSE which also elides the tail merging "opportunity". */
77 return p1
> 2147483647 - p2
? p1
: p1
+ p2
;
86 for (; c
; b
= fn1 (j
, 1))
91 /* { dg-final { scan-tree-dump-times "(?n)find_duplicates: <bb .*> duplicate of <bb .*>" 1 "pre" } } */