]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization: Clarify LIM memory ref equality master trunk
authorXin Wang <yw987194828@gmail.com>
Wed, 20 May 2026 08:17:15 +0000 (16:17 +0800)
committerRichard Biener <rguenther@suse.de>
Fri, 19 Jun 2026 11:49:27 +0000 (13:49 +0200)
commit45a36dc994b3a6157111570b2601e8f632af7d5d
tree90760f0495d96119f45849e3a17b66512f3a56cf
parentb6e894a6bf32aac79bd6bcce2f45a27608f11697
tree-optimization: Clarify LIM memory ref equality

Restructure mem_ref_hasher::equal so the non-decomposed fallback
and the decomposed comparison path are explicit. The non-decomposed
lookup still compares the original refs with operand_equal_p, while
the decomposed path keeps the same base, offset, size, max_size,
volatile, alias-set, and type checks as before. This matches the split
in gather_mem_refs_stmt, where non-decomposed references are marked
with an unknown max_size and decomposed references are hashed from
base, offset, and size.

* tree-ssa-loop-im.cc (mem_ref_hasher::equal): Refactor
for clarity.

Signed-off-by: Xin Wang <wangxinw@hygon.cn>
gcc/tree-ssa-loop-im.cc