[llvm] [GISEL][RISCV] IRTranslator for scalable vector load (PR #80006)

Jiahan Xie via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 28 10:21:55 PST 2024


================
@@ -1240,7 +1240,7 @@ void MachineMemOperand::print(raw_ostream &OS, ModuleSlotTracker &MST,
        << "unknown-address";
   }
   MachineOperand::printOperandOffset(OS, getOffset());
-  if (getSize() > 0 && getAlign() != getSize())
+  if (getType().getElementCount().getKnownMinValue() > 0 && getAlign() != getType().getElementCount().getKnownMinValue())
----------------
jiahanxie353 wrote:

> it can be useful to do ./build/bin/llvm-lit -v llvm/test/MachineVerifier/test_g_load.mir to see whether a specific test is failing/passing and why.

this command is passing!

> Does it fail when you run ninja check-llvm?

I tried to run it but every time I use `check-llvm` it puts a lot of burden and my machine just got stuck there or even freezed.

> If you look at the CHECK statements, this test is expecting bad machine code failures.

right, and I thought there would be a try-catch mechanism to catch the expected failures to report "there are expected failures" instead of actually raising them. 

But anyhow, `llvm-lit` is working, thanks!

https://github.com/llvm/llvm-project/pull/80006


More information about the llvm-commits mailing list