Backport cmd/compile: handle constant pointer offsets in dead store elimination
Reference:https://go-review.googlesource.com/c/go/+/538595
Signed-off-by: Lu Jingxiao <lujingxiao@huawei.com>
(cherry picked from commit 85e89048359f503459f974783059e9d80a50f6fd)