aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorFraser Cormack <fraser@codeplay.com>2022-07-13 11:10:41 +0100
committerFraser Cormack <fraser@codeplay.com>2022-07-13 16:56:55 +0100
commitbb3f99cd858e5a769f82c609f1536b1a00dcdcaf (patch)
tree7f72e71ed81e9ba4427dc4398746c262a933f56f /clang/lib/CodeGen/CodeGenFunction.cpp
parent69b6454fff872fecb936d5f0388a837d15a24933 (diff)
downloadllvm-bb3f99cd858e5a769f82c609f1536b1a00dcdcaf.zip
llvm-bb3f99cd858e5a769f82c609f1536b1a00dcdcaf.tar.gz
llvm-bb3f99cd858e5a769f82c609f1536b1a00dcdcaf.tar.bz2
[llvm-reduce] Fix crash when reducing integer vectors to 1
Integer vectors were previously ignored when reducing operands. When 6b8bd0f72 introduced support for reducing floating-point scalars/vectors, the vector case was written to only handle floating-point values. It would crash when creating an invalid ConstantFP from the integer element type. Instead of reinstating the old integer vector behaviour, we might as well reduce integer vectors to all-one splats. A couple of existing tests has also been renamed from "remove" to "reduce" to better reflect the deltas they test. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D129629
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions