aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-29 00:41:28 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-29 00:41:28 +0800
commit1481dd5b62a8a914e593206d72e1aff99ced2af4 (patch)
treeccb0141bce26375befe5eda5c23d83a99865e007 /backend
parent6b07676fa9177bbf971afaf898dd9997e0664b95 (diff)
downloadrcc-project-1481dd5b62a8a914e593206d72e1aff99ced2af4.tar.gz
rcc-project-1481dd5b62a8a914e593206d72e1aff99ced2af4.tar.xz
[RISCV] Merge identical selector cases
Diffstat (limited to 'backend')
-rw-r--r--backend/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/backend/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp b/backend/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
index 8361de2..4504fa7 100644
--- a/backend/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
+++ b/backend/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
@@ -586,9 +586,7 @@ public:
case GenericOpcode::G_CONSTANT_FOLD_BARRIER:
case GenericOpcode::G_PTRTOINT:
case GenericOpcode::G_INTTOPTR:
- return Instruction.setOpcode(opcode(GenericOpcode::COPY));
case GenericOpcode::G_ANYEXT:
- return Instruction.setOpcode(opcode(GenericOpcode::COPY));
case GenericOpcode::G_TRUNC:
return Instruction.setOpcode(opcode(GenericOpcode::COPY));
case GenericOpcode::G_FCMP: