Fix comment for (A / (1 << B)) -> (A >> B).
authorAndrew Pinski <apinski@marvell.com>
Mon, 28 Nov 2022 20:10:28 +0000 (20:10 +0000)
committerAndrew Pinski <apinski@marvell.com>
Mon, 28 Nov 2022 20:13:19 +0000 (20:13 +0000)
There was a small typo where Also was done
twice. The second also should have been
handled. This fixes that.

Committed as obvious after a build.

gcc/ChangeLog:

* match.pd ((A / (1 << B)) -> (A >> B).):
Fix comment.

gcc/match.pd

index 67a0a682f31e7fa85c73eb6d71835fa1b526a74f..f8610e370119c477324283347d4bf94cdab3d2f9 100644 (file)
@@ -354,7 +354,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
    Only for unsigned A.  For signed A, this would not preserve rounding
    toward zero.
    For example: (-1 / ( 1 << B)) !=  -1 >> B.
-   Also also widening conversions, like:
+   Also handle widening conversions, like:
    (A / (unsigned long long) (1U << B)) -> (A >> B)
    or
    (A / (unsigned long long) (1 << B)) -> (A >> B).