[PATCH] D107658: [RISCV] Teach isel to select ADDW/SUBW/MULW/SLLIW when only the lower 32-bits are used.

Zixuan Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 21 23:03:26 PDT 2021


zixuan-wu added a comment.





================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfo.td:1259
+// if only the lower 32 bits of their result is used.
+class overflowingbinopw<SDPatternOperator operator>
+    : PatFrag<(ops node:$lhs, node:$rhs),
----------------
I am wondering could it be applied to more complicated condition with 3 operands or 1 operand? For example, mulaw, or unary operator.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107658/new/

https://reviews.llvm.org/D107658



More information about the llvm-commits mailing list