Unverified Commit c1511a65 authored by Ruiling, Song's avatar Ruiling, Song Committed by GitHub
Browse files

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

For scratch load/store, our hardware only accept non-negative value in
SGPR/VGPR. Besides the case that we can prove from known bits, we can
also prove that the value in `base` will be non-negative: 1.) When the
ADD for the address calculation has NonUnsignedWrap flag. 2.) When the
immediate offset is already negative.
parent c6d6a57c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment