[PATCH] D125035: [riscv] Add strict asserts for VSETVLI insertion algorithm to help catch bugs

Fraser Cormack via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 6 04:41:58 PDT 2022


frasercrmck added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp:1188
+    if (CurInfo != Info.Exit) {
+      LLVM_DEBUG(dbgs() << "in block " << MBB.getName() << "\n");
+      LLVM_DEBUG(dbgs() << "  begin        state: " << Info.Pred << "\n");
----------------
`printMBBReference` might be better since `getName` returns an empty string if there's no IR BB?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125035/new/

https://reviews.llvm.org/D125035



More information about the llvm-commits mailing list