]> git.ipfire.org Git - thirdparty/gcc.git/commit
match: Fix comment for `X != 0 ? X + ~0 : 0` transformation
authorAndrew Pinski <quic_apinski@quicinc.com>
Sun, 3 Nov 2024 20:19:46 +0000 (12:19 -0800)
committerAndrew Pinski <quic_apinski@quicinc.com>
Tue, 5 Nov 2024 21:10:43 +0000 (13:10 -0800)
commit2e35fbd1fd1c8c149ce1156f4a2c15c9c331a1ca
tree304b9abbe0e2a235d033f1661e623737e94e0169
parentc7518891483e2aa558390ffeab4a19ba747814d6
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>
gcc/match.pd