]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Add check for BUILT_IN_NORMAL to ifcvt [PR122103]
authorTamar Christina <tamar.christina@arm.com>
Tue, 6 Jan 2026 15:00:44 +0000 (15:00 +0000)
committerTamar Christina <tamar.christina@arm.com>
Tue, 6 Jan 2026 15:00:44 +0000 (15:00 +0000)
commit8b8d234304abab6ae93faf92c0151fe5d290ca64
tree861f4a694a78b8d1bce9bb99a090a9b53e3880e2
parent255fa4a0abe251af318c9cf1c5f00c60b5009e19
vect: Add check for BUILT_IN_NORMAL to ifcvt [PR122103]

It was reported that some AVX10 test like
gcc.target/i386/avx10_2-vcvtbf162ibs-2.c ICEd with my
changes.  It turns out it's due to associated_internal_fn
only supporting BUILT_IN_NORMAL calls.

This adds a check for this before calling
associated_internal_fn.

Manually tested the files since they have an effective
target tests for hardware I don't have.

gcc/ChangeLog:

PR tree-optimization/122103
* tree-if-conv.cc (ifcvt_can_predicate): Add check for
normal builtins.
gcc/tree-if-conv.cc