From: Roger Sayle Date: Wed, 11 Jan 2023 16:54:58 +0000 (+0000) Subject: PR tree-optimization/71343: Value number X<<2 as X*4. X-Git-Tag: basepoints/gcc-14~2096 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=98837d6e79dd27c15f5218f3f1ddf838cda4796c;p=thirdparty%2Fgcc.git PR tree-optimization/71343: Value number X<<2 as X*4. This patch is the second part of a fix for PR tree-optimization/71343, that implements Richard Biener's suggestion of using tree-ssa's value numbering instead of match.pd. The change is that when assigning a value number for the expression X< gcc/ChangeLog PR tree-optimization/71343 * tree-ssa-sccvn.cc (visit_nary_op) : Make the value number of the expression X << C the same as the value number for the multiplication X * (1<