diff options
author | Craig Topper <craig.topper@sifive.com> | 2020-11-15 18:16:34 -0800 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2020-11-15 19:02:34 -0800 |
commit | 57c0c4a27575840ae0a48eb9f8455a5ed087c857 (patch) | |
tree | 78e6814b360d7c042f3578803276eba9360e9401 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 918e3439e20d068b3336febf084d7e11baa48311 (diff) | |
download | llvm-57c0c4a27575840ae0a48eb9f8455a5ed087c857.zip llvm-57c0c4a27575840ae0a48eb9f8455a5ed087c857.tar.gz llvm-57c0c4a27575840ae0a48eb9f8455a5ed087c857.tar.bz2 |
[X86] Fix crash with i64 bitreverse on 32-bit targets with XOP.
We unconditionally marked i64 as Custom, but did not install a
handler in ReplaceNodeResults when i64 isn't legal type. This
leads to ReplaceNodeResults asserting.
We have two options to fix this. Only mark i64 as Custom on
64-bit targets and let it expand to two i32 bitreverses which
each need a VPPERM. Or the other option is to add the Custom
handling to ReplaceNodeResults. This is what I went with.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions