]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix TYPE_PRECISION use in hashable_expr_equal_p
authorRichard Biener <rguenther@suse.de>
Fri, 23 Jun 2023 08:06:08 +0000 (10:06 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 26 Jun 2023 11:02:35 +0000 (13:02 +0200)
commitc3bdee86183b3d84f269e9775b2603f8f8221417
tree5054c5a76100dbc873070cdc308556bba2ff0167
parent9f76f04be40adffb2d3498010a23051502031140
Fix TYPE_PRECISION use in hashable_expr_equal_p

While the checks look unnecessary they probably are quick and
thus done early.  The following avoids using TYPE_PRECISION
on VECTOR_TYPEs by making the code match the comment which
talks about precision and signedness.  An alternative would
be to only retain the ERROR_MARK and TYPE_MODE checks or
use TYPE_PRECISION_RAW (but I like that least).

* tree-ssa-scopedtables.cc (hashable_expr_equal_p):
Use element_precision.
gcc/tree-ssa-scopedtables.cc