Skip to content

agx/lower_address: Add helper to match multiplies

Alyssa Rosenzweig requested to merge alyssa/mesa:agx/match-multiplies into main

Currently, we hardcode logic in the addressing chasing code to look for ishl instructions that shift by constants. We can generalize this to looking for integer multiplies by constants to optimize more addressing patterns. Add a helper to do so.

Signed-off-by: Alyssa Rosenzweig alyssa@rosenzweig.io

Merge request reports

Loading