[llvm] bc6e7f0 - [GlobalISel][NFC] Remove unused method CombinerHelper::tryCombine()
Amara Emerson via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 24 07:21:13 PDT 2023
Author: Amara Emerson
Date: 2023-09-24T22:20:21+08:00
New Revision: bc6e7f057340ab0b995cc17a170e34545a295f03
URL: https://github.com/llvm/llvm-project/commit/bc6e7f057340ab0b995cc17a170e34545a295f03
DIFF: https://github.com/llvm/llvm-project/commit/bc6e7f057340ab0b995cc17a170e34545a295f03.diff
LOG: [GlobalISel][NFC] Remove unused method CombinerHelper::tryCombine()
The combines were ported to the tablegen combiner a long time ago so this
manual method isn't needed.
Added:
Modified:
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
index f79944e824575a1..8df2c7eb86394ff 100644
--- a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
@@ -6171,13 +6171,3 @@ void CombinerHelper::applyCommuteBinOpOperands(MachineInstr &MI) {
MI.getOperand(2).setReg(LHSReg);
Observer.changedInstr(MI);
}
-
-bool CombinerHelper::tryCombine(MachineInstr &MI) {
- if (tryCombineCopy(MI))
- return true;
- if (tryCombineExtendingLoads(MI))
- return true;
- if (tryCombineIndexedLoadStore(MI))
- return true;
- return false;
-}
More information about the llvm-commits
mailing list