]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/114921 - _Float16 -> __bf16 isn't noop
authorRichard Biener <rguenther@suse.de>
Thu, 2 May 2024 11:55:15 +0000 (13:55 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 3 May 2024 06:19:51 +0000 (08:19 +0200)
commit87e35da16df74cd1c4729a55d94e7bc592487f48
tree9480fb06a30c630224da93291ebe4b9a139fcdb3
parentf04dc89a991ddc6c08ac92c8ad29c6915c4ecafa
tree-optimization/114921 - _Float16 -> __bf16 isn't noop

The vectorizer handles a _Float16 to __bf16 conversion through
vectorizable_assignment, thinking it's a noop.  The following
fixes this by requiring the same vector component mode when
checking for CONVERT_EXPR_CODE_P, being stricter than for
VIEW_CONVERT_EXPR.

PR tree-optimization/114921
* tree-vect-stmts.cc (vectorizable_assignment): Require
same vector component modes for input and output for
CONVERT_EXPR_CODE_P.
gcc/tree-vect-stmts.cc