aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/CodeGen
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-27 16:09:44 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-27 16:09:44 +0800
commit12dcc180caf1f1e416456277f2dcb92fbe260c3d (patch)
treeda8322bb19deb2f95ae95a6f2365f26c476f301a /backend/lib/CodeGen
parent5fd19fbe147eaff6e65e7dc3b63b324d80f19a05 (diff)
downloadrcc-project-12dcc180caf1f1e416456277f2dcb92fbe260c3d.tar.gz
rcc-project-12dcc180caf1f1e416456277f2dcb92fbe260c3d.tar.xz
[GlobalISel] Select each instruction once
Diffstat (limited to 'backend/lib/CodeGen')
-rw-r--r--backend/lib/CodeGen/GlobalISel/InstructionSelect.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/backend/lib/CodeGen/GlobalISel/InstructionSelect.cpp b/backend/lib/CodeGen/GlobalISel/InstructionSelect.cpp
index 6aab43d..88bc78e 100644
--- a/backend/lib/CodeGen/GlobalISel/InstructionSelect.cpp
+++ b/backend/lib/CodeGen/GlobalISel/InstructionSelect.cpp
@@ -277,9 +277,6 @@ Expected<MachinePassResult> InstructionSelect::runImplementation(MachineFunction
CurrentDescriptor->Name + "'",
ErrorCode::InternalError));
}
- auto Match = Info->canSelect(*Instruction, Function, Target);
- if (!Match)
- return std::unexpected(Match.error());
std::string Rule = "select.";
Rule.append(CurrentDescriptor->Name);
auto Accepted = Analyses.requestAction(Rule, Function, Instruction->stableID());