From 490ef262a9a3733d3b42811b0abe614e6891f8bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20Sch=C3=BCtt?= Date: Fri, 19 Jul 2024 14:23:01 +0200 Subject: [PATCH] removed comments --- llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp index 88441a5de62c77..553d23a9a58870 100644 --- a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp +++ b/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp @@ -7443,12 +7443,10 @@ bool CombinerHelper::matchFoldAPlusC1MinusC2(const MachineInstr &MI, if (!MRI.hasOneNonDBGUse(Add->getReg(0))) return false; - // Cannot fail due to pattern. std::optional MaybeC2 = getIConstantVRegVal(Sub->getRHSReg(), MRI); if (!MaybeC2) return false; - // Cannot fail due to pattern. std::optional MaybeC1 = getIConstantVRegVal(Add->getRHSReg(), MRI); if (!MaybeC1) return false; @@ -7473,12 +7471,10 @@ bool CombinerHelper::matchFoldC2MinusAPlusC1(const MachineInstr &MI, if (!MRI.hasOneNonDBGUse(Add->getReg(0))) return false; - // Cannot fail due to pattern. std::optional MaybeC2 = getIConstantVRegVal(Sub->getLHSReg(), MRI); if (!MaybeC2) return false; - // Cannot fail due to pattern. std::optional MaybeC1 = getIConstantVRegVal(Add->getRHSReg(), MRI); if (!MaybeC1) return false; @@ -7503,12 +7499,10 @@ bool CombinerHelper::matchFoldAMinusC1MinusC2(const MachineInstr &MI, if (!MRI.hasOneNonDBGUse(Sub2->getReg(0))) return false; - // Cannot fail due to pattern. std::optional MaybeC2 = getIConstantVRegVal(Sub1->getRHSReg(), MRI); if (!MaybeC2) return false; - // Cannot fail due to pattern. std::optional MaybeC1 = getIConstantVRegVal(Sub2->getRHSReg(), MRI); if (!MaybeC1) return false; @@ -7533,12 +7527,10 @@ bool CombinerHelper::matchFoldC1Minus2MinusC2(const MachineInstr &MI, if (!MRI.hasOneNonDBGUse(Sub2->getReg(0))) return false; - // Cannot fail due to pattern. std::optional MaybeC2 = getIConstantVRegVal(Sub1->getRHSReg(), MRI); if (!MaybeC2) return false; - // Cannot fail due to pattern. std::optional MaybeC1 = getIConstantVRegVal(Sub2->getLHSReg(), MRI); if (!MaybeC1) return false; @@ -7563,12 +7555,10 @@ bool CombinerHelper::matchFoldAMinusC2PlusC2(const MachineInstr &MI, if (!MRI.hasOneNonDBGUse(Sub->getReg(0))) return false; - // Cannot fail due to pattern. std::optional MaybeC2 = getIConstantVRegVal(Add->getRHSReg(), MRI); if (!MaybeC2) return false; - // Cannot fail due to pattern. std::optional MaybeC1 = getIConstantVRegVal(Sub->getRHSReg(), MRI); if (!MaybeC1) return false;