[llvm] [NVPTX] miscellaneous minor cleanup (NFC) (PR #152329)
Alex MacLean via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 11 11:49:23 PDT 2025
================
@@ -1774,37 +1771,20 @@ SDValue NVPTXDAGToDAGISel::selectPossiblyImm(SDValue V) {
return V;
}
-bool NVPTXDAGToDAGISel::ChkMemSDNodeAddressSpace(SDNode *N,
- unsigned int spN) const {
- const Value *Src = nullptr;
- if (MemSDNode *mN = dyn_cast<MemSDNode>(N)) {
- if (spN == 0 && mN->getMemOperand()->getPseudoValue())
- return true;
----------------
AlexMaclean wrote:
I'm not really sure. In practice I think that for the cases where this pattern is used, this code might be dead. At least it doesn't seem to cause any issues to remove it...
https://github.com/llvm/llvm-project/pull/152329
More information about the llvm-commits
mailing list