[llvm] [GISel] Improve MachineVerifier for G_SCMP/UCMP. (PR #120017)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 15 12:42:45 PST 2024
================
@@ -1627,18 +1626,18 @@ void MachineVerifier::verifyPreISelGenericInstruction(const MachineInstr *MI) {
break;
}
+ if (DstTy.getScalarSizeInBits() < 2) {
+ report("result type must be at least 2 bits wide", MI);
----------------
s-barannikov wrote:
It looks like most error messages start with a capital letter.
```suggestion
report("Result type must be at least 2 bits wide", MI);
```
https://github.com/llvm/llvm-project/pull/120017
More information about the llvm-commits
mailing list