Message ID | 20220316140110.7F05B13322@imap2.suse-dmz.suse.de |
---|---|
State | New |
Headers | show |
Series | [GCC11] tree-optimization/104931 - mitigate niter analysis issue | expand |
diff --git a/gcc/match.pd b/gcc/match.pd index 05a08d0f96a..a005dcd42bd 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -1997,6 +1997,11 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) (simplify (pointer_plus (pointer_plus:s @0 @1) @3) (pointer_plus @0 (plus @1 @3))) +#if GENERIC +(simplify + (pointer_plus (convert:s (pointer_plus:s @0 @1)) @3) + (convert:type (pointer_plus @0 (plus @1 @3)))) +#endif /* Pattern match tem1 = (long) ptr1;