[llvm] [MachineVerifier] Check that the destination of G_EXTRACT_SUBVECTOR is smaller than the source. (PR #109202)
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 18 14:27:53 PDT 2024
================
@@ -1793,8 +1799,7 @@ void MachineVerifier::verifyPreISelGenericInstruction(const MachineInstr *MI) {
}
uint64_t SrcMinLen = SrcTy.getElementCount().getKnownMinValue();
- if (SrcTy.isScalable() == DstTy.isScalable() &&
- (Idx >= SrcMinLen || Idx + DstMinLen > SrcMinLen)) {
+ if ((Idx >= SrcMinLen || Idx + DstMinLen > SrcMinLen)) {
----------------
michaelmaitland wrote:
I think you can drop `()` pair
https://github.com/llvm/llvm-project/pull/109202
More information about the llvm-commits
mailing list