]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/123755 - fix LEN-masking of trapping calls
authorRichard Biener <rguenther@suse.de>
Mon, 26 Jan 2026 07:57:45 +0000 (08:57 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 26 Jan 2026 13:02:34 +0000 (14:02 +0100)
commitdd38fa87afc8a9bb17af0121282dade697111f4d
treed7dff68e50ed8f9515196ab8e2074ca1fec3f260
parentda35ef96f76694d74b0937966db7def510005c76
tree-optimization/123755 - fix LEN-masking of trapping calls

There's multiple issues with properly handling len-masking of calls
that might trap.  Similar to get_conditional_internal_fn,
get_len_internal_fn expects a COND_* argument only.  When the
original call is not already masked computation and code-gen fails
to add mask and else arguments.

This fixes gcc.target/riscv/rvv/autovec/reduc/reduc_call-5.c

PR tree-optimization/123755
* tree-vect-stmts.cc (vectorizable_call): Fixup LEN masking
of unconditional but possibly trapping calls.
gcc/tree-vect-stmts.cc