freedreno/ir3: allow copy propagation for relative
authorRob Clark <robdclark@chromium.org>
Fri, 9 Aug 2019 16:08:20 +0000 (09:08 -0700)
committerRob Clark <robdclark@gmail.com>
Fri, 6 Sep 2019 00:13:44 +0000 (00:13 +0000)
commit9baa72b7fc9989e35f474310ef333c50b2af934a
tree95b63389a7ac926493d95848e4dac379685de411
parentd9ad6f54dcf6c4deb43055e45f1636e74c176ce3
freedreno/ir3: allow copy propagation for relative

This appears to work fine (with the additional constraint of keeping the
indirect load in the same block that a0.x was loaded).

We can probably lift this restriction on earlier gens after testing.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/freedreno/ir3/ir3_cp.c