tree-optimization/106403 - fix ICE with VN of .STORE_LANES
authorRichard Biener <rguenther@suse.de>
Fri, 22 Jul 2022 08:13:06 +0000 (10:13 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 22 Jul 2022 08:15:23 +0000 (10:15 +0200)
commitd85e5aeb7665ea941ff0ef7c11bfe1d39986b48a
tree2325ba57a629c00cfba6b8379c8187891d5f64bf
parentb2e99bb6900f33f46a0f4ca6ae94b8a39b0b9bb1
tree-optimization/106403 - fix ICE with VN of .STORE_LANES

While .STORE_LANES is not supported by the recent VN patch we were
still accessing the stored value and valueizing it - but
internal_fn_stored_value_index does not support .STORE_LANES and
we failed to honor that case.  Fixed by simply moving the affected
code below the check for the actual supported internal functions.

PR tree-optimization/106403
* tree-ssa-sccvn.cc (vn_reference_lookup_3): Move stored
value valueization after check for IFN_MASKED_STORE or
IFN_LEN_STORE.
gcc/tree-ssa-sccvn.cc