Module: Mesa Branch: main Commit: 3e9411a75d7670fd619f8d1402998dbc7fc4d6cf URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3e9411a75d7670fd619f8d1402998dbc7fc4d6cf
Author: Alyssa Rosenzweig <[email protected]> Date: Mon Jul 12 10:26:05 2021 -0400 pan/bi: Refuse to CSE non-SSA sources They might have changed in between. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10961> --- src/panfrost/bifrost/bi_opt_cse.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/panfrost/bifrost/bi_opt_cse.c b/src/panfrost/bifrost/bi_opt_cse.c index d97d337f691..832bae0313c 100644 --- a/src/panfrost/bifrost/bi_opt_cse.c +++ b/src/panfrost/bifrost/bi_opt_cse.c @@ -139,6 +139,12 @@ instr_can_cse(const bi_instr *I) return false; } + /* Similar refuse to CSE non-SSA sources */ + bi_foreach_src(I, s) { + if (I->src[s].reg || I->src[s].type == BI_INDEX_REGISTER) + return false; + } + return true; } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
