diff options
author | Andrew Pinski <quic_apinski@quicinc.com> | 2024-11-03 12:19:46 -0800 |
---|---|---|
committer | Andrew Pinski <quic_apinski@quicinc.com> | 2024-11-05 13:10:43 -0800 |
commit | 2e35fbd1fd1c8c149ce1156f4a2c15c9c331a1ca (patch) | |
tree | 304b9abbe0e2a235d033f1661e623737e94e0169 /gcc | |
parent | c7518891483e2aa558390ffeab4a19ba747814d6 (diff) | |
download | gcc-2e35fbd1fd1c8c149ce1156f4a2c15c9c331a1ca.zip gcc-2e35fbd1fd1c8c149ce1156f4a2c15c9c331a1ca.tar.gz gcc-2e35fbd1fd1c8c149ce1156f4a2c15c9c331a1ca.tar.bz2 |
match: Fix comment for `X != 0 ? X + ~0 : 0` transformation
Just a small coment fix, the `(` was in the wrong location,
making it look it was transforming into `(X - X) != 0`
rather than `X - (X != 0)`.
Pushed as obvious after a quick build for x86_64-linux-gnu.
gcc/ChangeLog:
* match.pd (X != 0 ? X + ~0 : 0): Fix comment.
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/match.pd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/match.pd b/gcc/match.pd index 9107e6a..c10bf9a 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -3393,7 +3393,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) /* The boundary condition for case 10: IMM = 1: SAT_U_SUB = X >= IMM ? (X - IMM) : 0. - simplify (X != 0 ? X + ~0 : 0) to (X - X != 0). */ + simplify (X != 0 ? X + ~0 : 0) to X - (X != 0). */ (simplify (cond (ne@1 @0 integer_zerop) (nop_convert1? (plus (nop_convert2?@2 @0) integer_all_onesp)) |