diff options
author | Fraser Cormack <fraser@codeplay.com> | 2021-10-20 15:51:36 +0100 |
---|---|---|
committer | Fraser Cormack <fraser@codeplay.com> | 2021-10-20 16:45:55 +0100 |
commit | eabf11f9ea8d647d78e455664658b4faf8880029 (patch) | |
tree | 559477188a2070f8afe350be5577159f6bc848f1 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | a29dfc089d18b542694cd26a06bee822ab90fb56 (diff) | |
download | llvm-eabf11f9ea8d647d78e455664658b4faf8880029.zip llvm-eabf11f9ea8d647d78e455664658b4faf8880029.tar.gz llvm-eabf11f9ea8d647d78e455664658b4faf8880029.tar.bz2 |
[CodeGenPrepare] Avoid a scalable-vector crash in ctlz/cttz
This patch fixes a crash when despeculating ctlz/cttz intrinsics with
scalable-vector types. It is not safe to speculatively get the size of
the vector type in bits in case the vector type is not a fixed-length type. As
it happens this isn't required as vector types are skipped anyway.
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D112141
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions