From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1314) id D2B4B3858D38; Sat, 18 Feb 2023 01:49:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D2B4B3858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676684963; bh=1scjbAmuABmAmJGd3k0og3+KKVe1+hNJFbtDkiHLyu4=; h=From:To:Subject:Date:From; b=G6ouajzfVlYG7WkxgsAlraruNnIGRYkhAFIYzsriLT0x+rGcUC+wczLHKfUgepco+ 2L0b2dgaMyhpc9RnwvLkI9euzRsTnS7hLxcbOEkOsKkYKMUOoKo6IWZeIOq2cCs/bY R4+q+5OklKPM0xGGTk9xxxDQbH098Y81/0BlVeZA= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Andrew Pinski To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-6125] Remove #if GIMPLE around 1 - a pattern X-Act-Checkin: gcc X-Git-Author: Andrew Pinski X-Git-Refname: refs/heads/trunk X-Git-Oldrev: 175d528595c3a8bdf75086d4e13844b645f715b0 X-Git-Newrev: a7d8c40484c31a74a2c2bb17d835d60ba7dd8d29 Message-Id: <20230218014923.D2B4B3858D38@sourceware.org> Date: Sat, 18 Feb 2023 01:49:23 +0000 (GMT) List-Id: https://gcc.gnu.org/g:a7d8c40484c31a74a2c2bb17d835d60ba7dd8d29 commit r13-6125-ga7d8c40484c31a74a2c2bb17d835d60ba7dd8d29 Author: Andrew Pinski Date: Fri Feb 17 16:43:27 2023 +0000 Remove #if GIMPLE around 1 - a pattern This removes the "#if GIMPLE" around the "1 - a" pattern as ssa_name_has_boolean_range (get_range_query) works when cfun is a nullptr. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. gcc/ChangeLog: * match.pd: Remove #if GIMPLE around the "1 - a" pattern Diff: --- gcc/match.pd | 2 -- 1 file changed, 2 deletions(-) diff --git a/gcc/match.pd b/gcc/match.pd index e7b700349a6..e352bd422f5 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -1732,7 +1732,6 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) (if (!FIXED_POINT_TYPE_P (type)) (plus @0 (negate @1)))) -#if GIMPLE /* 1 - a is a ^ 1 if a had a bool range. */ /* This is only enabled for gimple as sometimes cfun is not set for the function which contains @@ -1743,7 +1742,6 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) (if (INTEGRAL_TYPE_P (type) && ssa_name_has_boolean_range (@1)) (bit_xor @1 @0))) -#endif /* Other simplifications of negation (c.f. fold_negate_expr_1). */ (simplify