Skip to content

Commit

Permalink
[RISCV] Add 'i64' to some isel so tablegen will remove them for RV32.…
Browse files Browse the repository at this point in the history
… NFC

Saves a 100 bytes or so from the isel table.
  • Loading branch information
topperc committed Feb 24, 2022
1 parent b682616 commit 506ac29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/RISCV/RISCVInstrInfo.td
Expand Up @@ -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);
}]>;

Expand Down

0 comments on commit 506ac29

Please sign in to comment.