We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cedcff8 commit b1bd621Copy full SHA for b1bd621
llvm/lib/CodeGen/MachineVerifier.cpp
@@ -1192,7 +1192,7 @@ void MachineVerifier::verifyPreISelGenericInstruction(const MachineInstr *MI) {
1192
if (MMO.getSizeInBits() >= ValTy.getSizeInBits())
1193
report("Generic extload must have a narrower memory type", MI);
1194
} else if (MI->getOpcode() == TargetOpcode::G_LOAD) {
1195
- if (MMO.getSize() > ValTy.getSizeInBytes())
+ if (TypeSize::isKnownGT(MMO.getMemoryType().getSizeInBytes(), ValTy.getSizeInBytes()))
1196
report("load memory size cannot exceed result size", MI);
1197
} else if (MI->getOpcode() == TargetOpcode::G_STORE) {
1198
if (ValTy.getSizeInBytes() < MMO.getSize())
0 commit comments