aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/XCOFFObjectFile.cpp
diff options
context:
space:
mode:
authorPhilip Reames <preames@rivosinc.com>2022-06-20 13:16:15 -0700
committerPhilip Reames <listmail@philipreames.com>2022-06-20 13:19:11 -0700
commitbbf3fd4af1653693c7ada225c07cbd485ad1463c (patch)
tree6407f607238ee6584191b79c835d876f4466ff40 /llvm/lib/Object/XCOFFObjectFile.cpp
parent31e2bba155986b1416c70655c9f5f9e77c2abd46 (diff)
downloadllvm-bbf3fd4af1653693c7ada225c07cbd485ad1463c.zip
llvm-bbf3fd4af1653693c7ada225c07cbd485ad1463c.tar.gz
llvm-bbf3fd4af1653693c7ada225c07cbd485ad1463c.tar.bz2
[BasicTTI] Return Invalid for scalable vectors reaching getScalarizationOverhead
If we would scalarize a fixed vector, we know we can't do so for a scalable one. However, there's no need to crash, we can instead simply return a invalid cost which will work its way through the computation (since invalid is sticky), and the client should bail out. Sorry for the lack of test here. The particular codepath I saw this reached on was the result of another bug.
Diffstat (limited to 'llvm/lib/Object/XCOFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions