[llvm-branch-commits] [llvm] f78ad68 - [RISCV] Remove unused PatFrag argument from the tablegen class used for c.beqz/c.bnez. NFC

Craig Topper via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Nov 25 20:41:15 PST 2020


Author: Craig Topper
Date: 2020-11-25T20:35:23-08:00
New Revision: f78ad68b6d8ccfd6e082e6430528751376084726

URL: https://github.com/llvm/llvm-project/commit/f78ad68b6d8ccfd6e082e6430528751376084726
DIFF: https://github.com/llvm/llvm-project/commit/f78ad68b6d8ccfd6e082e6430528751376084726.diff

LOG: [RISCV] Remove unused PatFrag argument from the tablegen class used for c.beqz/c.bnez. NFC

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVInstrInfoC.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVInstrInfoC.td b/llvm/lib/Target/RISCV/RISCVInstrInfoC.td
index a9960ea546ad..fbddde2b4bdc 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoC.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoC.td
@@ -239,7 +239,7 @@ class CStore_rri<bits<3> funct3, string OpcodeStr,
                  OpcodeStr, "$rs2, ${imm}(${rs1})">;
 
 let hasSideEffects = 0, mayLoad = 0, mayStore = 0 in
-class Bcz<bits<3> funct3, string OpcodeStr, PatFrag CondOp,
+class Bcz<bits<3> funct3, string OpcodeStr,
           RegisterClass cls>
     : RVInst16CB<funct3, 0b01, (outs), (ins cls:$rs1, simm9_lsb0:$imm),
                  OpcodeStr, "$rs1, $imm"> {
@@ -469,8 +469,8 @@ def C_J : RVInst16CJ<0b101, 0b01, (outs), (ins simm12_lsb0:$offset),
   let isBarrier=1;
 }
 
-def C_BEQZ : Bcz<0b110, "c.beqz",  seteq, GPRC>, Sched<[WriteJmp]>;
-def C_BNEZ : Bcz<0b111, "c.bnez",  setne, GPRC>, Sched<[WriteJmp]>;
+def C_BEQZ : Bcz<0b110, "c.beqz", GPRC>, Sched<[WriteJmp]>;
+def C_BNEZ : Bcz<0b111, "c.bnez", GPRC>, Sched<[WriteJmp]>;
 
 let hasSideEffects = 0, mayLoad = 0, mayStore = 0 in
 def C_SLLI : RVInst16CI<0b000, 0b10, (outs GPRNoX0:$rd_wb),


        


More information about the llvm-branch-commits mailing list