[PATCH] D151848: [X86, Peephole] Enable FoldImmediate for X86
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 18 00:28:38 PDT 2023
mstorsjo added a comment.
This change triggers failed asserts for me:
$ cat repro.c
short a, b;
void c() {
__asm__("" : : "q"(256 * sizeof a));
__asm__("" : : "q"(256 * sizeof b));
}
$ clang -target i686-w64-mingw32 -c repro.c -O2
clang: ../include/llvm/CodeGen/MachineOperand.h:375: unsigned int llvm::MachineOperand::getSubReg() const: Assertion `isReg() && "Wrong MachineOperand accessor"' failed.
Can you look into it, or revert if fixing it takes a while?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151848/new/
https://reviews.llvm.org/D151848
More information about the llvm-commits
mailing list