[PATCH] D142911: [RISCV] Peak through BITCAST in isUsedByReturnOnly

Luke Lau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 30 15:38:56 PST 2023


luke added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:13265-13269
   SDNode *Copy = *N->use_begin();
+  
+  if (Copy->getOpcode() == ISD::BITCAST) {
+    return isUsedByReturnOnly(Copy, Chain);
+  }
----------------
jrtc27 wrote:
> jrtc27 wrote:
> > 
> Never mind, that goes the wrong way...
Didn't know that method existed, looks handy.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D142911



More information about the llvm-commits mailing list