aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-mca/llvm-mca.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2021-06-24 12:24:04 +0100
committerFlorian Hahn <flo@fhahn.com>2021-06-24 12:39:01 +0100
commita54c6fc083c45595466c2d3d73ccf80c07ef1247 (patch)
treeac5e34dfb3eda9689a4c283f828f6bc147e82398 /llvm/tools/llvm-mca/llvm-mca.cpp
parent121ecb05e73427ab3bc6ceeca04fbab161417e6e (diff)
downloadllvm-a54c6fc083c45595466c2d3d73ccf80c07ef1247.zip
llvm-a54c6fc083c45595466c2d3d73ccf80c07ef1247.tar.gz
llvm-a54c6fc083c45595466c2d3d73ccf80c07ef1247.tar.bz2
[X86] Exclude invalid element types for bitcast/broadcast folding.
It looks like the fold introduced in 63f3383ece25efa can cause crashes if the type of the bitcasted value is not a valid vector element type, like x86_mmx. To resolve the crash, reject invalid vector element types. The way it is done in the patch is a bit clunky. Perhaps there's a better way to check? Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D104792
Diffstat (limited to 'llvm/tools/llvm-mca/llvm-mca.cpp')
0 files changed, 0 insertions, 0 deletions