[all-commits] [llvm/llvm-project] 9f773b: [GlobalISel][IRTranslator] Fix crash during bit-te...
Amara Emerson via All-commits
all-commits at lists.llvm.org
Fri Sep 24 00:19:43 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9f773b17c2bc6916f12048a52ae271d1bf0edacf
https://github.com/llvm/llvm-project/commit/9f773b17c2bc6916f12048a52ae271d1bf0edacf
Author: Amara Emerson <amara at apple.com>
Date: 2021-09-24 (Fri, 24 Sep 2021)
Changed paths:
M llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
M llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-switch-bittest.ll
Log Message:
-----------
[GlobalISel][IRTranslator] Fix crash during bit-test switch optimization with odd types.
Odd switch case types cause a crash in the conversion to MVT. Instead use a pointer sized
scalar type which is what SDAG does in these cases.
More information about the All-commits
mailing list