[llvm] 506ac29 - [RISCV] Add 'i64' to some isel so tablegen will remove them for RV32. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 24 15:10:44 PST 2022


Author: Craig Topper
Date: 2022-02-24T15:10:05-08:00
New Revision: 506ac296322014e42b78bb9d9bdfdd919d4492a7

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

LOG: [RISCV] Add 'i64' to some isel so tablegen will remove them for RV32. NFC

Saves a 100 bytes or so from the isel table.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVInstrInfo.td b/llvm/lib/Target/RISCV/RISCVInstrInfo.td
index 952910cbfc06c..09ba9c73ddbd4 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfo.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfo.td
@@ -1418,7 +1418,7 @@ def : Pat<(i64 (shl (and GPR:$rs1, 0xffffffff), uimm5:$shamt)),
 // if only the lower 32 bits of their result is used.
 class binop_allwusers<SDPatternOperator operator>
     : PatFrag<(ops node:$lhs, node:$rhs),
-              (operator node:$lhs, node:$rhs), [{
+              (i64 (operator node:$lhs, node:$rhs)), [{
   return hasAllWUsers(Node);
 }]>;
 


        


More information about the llvm-commits mailing list