[llvm] [AMDGPU] Folding imm offset in more cases for scratch access (PR #70634)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 9 03:25:54 PST 2023


================
@@ -1860,7 +1905,7 @@ bool AMDGPUDAGToDAGISel::SelectScratchSVAddr(SDNode *N, SDValue Addr,
           CurDAG->getTargetConstant(RemainderOffset, SDLoc(), MVT::i32));
         VAddr = SDValue(VMov, 0);
----------------
arsenm wrote:

isInt<32>(x) && static_cast<int32_t>(x) > 0?

https://github.com/llvm/llvm-project/pull/70634


More information about the llvm-commits mailing list