[llvm] 8e59fe2 - [FastISel] Correctly report prototype on miss
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 11 02:49:14 PDT 2023
Author: Alexis Engelke
Date: 2023-04-11T11:49:08+02:00
New Revision: 8e59fe2d8e620787b1b6c0f247903ac06c3ca6fe
URL: https://github.com/llvm/llvm-project/commit/8e59fe2d8e620787b1b6c0f247903ac06c3ca6fe
DIFF: https://github.com/llvm/llvm-project/commit/8e59fe2d8e620787b1b6c0f247903ac06c3ca6fe.diff
LOG: [FastISel] Correctly report prototype on miss
The type of a function is nowadays just an opaque pointer, which is not
helpful when analyzing FastISel misses. Instead print the actual
function type of the function.
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D147716
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 65dd80f5eb084..d77dfb61589ca 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -1449,7 +1449,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) {
Fn.getSubprogram(),
&Fn.getEntryBlock());
R << "FastISel didn't lower all arguments: "
- << ore::NV("Prototype", Fn.getType());
+ << ore::NV("Prototype", Fn.getFunctionType());
reportFastISelFailure(*MF, *ORE, R, EnableFastISelAbort > 1);
// Use SelectionDAG argument lowering
More information about the llvm-commits
mailing list