[PATCH] D78137: [GISel][RegBankSelect] Hide assertion failure from LLT::getScalarSizeInBits [2/10]
Vedant Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 15 18:14:30 PDT 2020
vsk updated this revision to Diff 257923.
vsk retitled this revision from "[RegBankSelect] Hide assertion failure from LLT::getScalarSizeInBits" to "[GISel][RegBankSelect] Hide assertion failure from LLT::getScalarSizeInBits [2/10]".
vsk added a comment.
retitle
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78137/new/
https://reviews.llvm.org/D78137
Files:
llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
llvm/test/CodeGen/AArch64/GlobalISel/arm64-regbankselect.mir
Index: llvm/test/CodeGen/AArch64/GlobalISel/arm64-regbankselect.mir
===================================================================
--- llvm/test/CodeGen/AArch64/GlobalISel/arm64-regbankselect.mir
+++ llvm/test/CodeGen/AArch64/GlobalISel/arm64-regbankselect.mir
@@ -1,5 +1,5 @@
-# RUN: llc -O0 -run-pass=regbankselect %s -o - -verify-machineinstrs | FileCheck %s --check-prefix=CHECK --check-prefix=FAST
-# RUN: llc -O0 -run-pass=regbankselect %s -regbankselect-greedy -o - -verify-machineinstrs | FileCheck %s --check-prefix=CHECK --check-prefix=GREEDY
+# RUN: llc -O0 -debugify-and-strip-all-safe -run-pass=regbankselect %s -o - -verify-machineinstrs | FileCheck %s --check-prefix=CHECK --check-prefix=FAST
+# RUN: llc -O0 -debugify-and-strip-all-safe -run-pass=regbankselect %s -regbankselect-greedy -o - -verify-machineinstrs | FileCheck %s --check-prefix=CHECK --check-prefix=GREEDY
--- |
; ModuleID = 'generic-virtual-registers-type-error.mir'
Index: llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
===================================================================
--- llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
+++ llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
@@ -693,6 +693,10 @@
if (isTargetSpecificOpcode(MI.getOpcode()) && !MI.isPreISelOpcode())
continue;
+ // Ignore debug info.
+ if (MI.isDebugInstr())
+ continue;
+
if (!assignInstr(MI)) {
reportGISelFailure(MF, *TPC, *MORE, "gisel-regbankselect",
"unable to map instruction", MI);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78137.257923.patch
Type: text/x-patch
Size: 1540 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200416/e7b6b1bb/attachment.bin>
More information about the llvm-commits
mailing list