]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/109721 - emulated vectors
authorRichard Biener <rguenther@suse.de>
Thu, 4 May 2023 08:06:47 +0000 (10:06 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 4 May 2023 10:51:49 +0000 (12:51 +0200)
commit82cfd93ae81a5687bf2a1b12d964c630e95517a7
treede5a70302501a62b51de20ff1e0aa6cc8c3a1a76
parent93c26deab98fc80b616a1c53c324a88f61036f53
tree-optimization/109721 - emulated vectors

When fixing PR109672 I noticed we let SImode AND through when
target_support_p even though it isn't word_mode and I didn't want to
change that but had to catch the case where SImode PLUS is supported
but emulated vectors rely on it being word_mode.  The following
makes sure to preserve the word_mode check when !target_support_p
to avoid excessive lowering later even for bit operations.

PR tree-optimization/109721
* tree-vect-stmts.cc (vectorizable_operation): Make sure
to test word_mode for all !target_support_p operations.
gcc/tree-vect-stmts.cc