[llvm] [CodeGen] IMPLICIT_DEF must not contribute to Weight in LICM register cost computation (PR #196500)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sat May 9 10:25:25 PDT 2026


arsenm wrote:

> MPLICIT_DEF is always hoisted out of loop by LICM as it's trivially
rematerializable.

This seems like a bad idea. We probably should specifically not hoist IMPLICIT_DEF. IMPLICIT_DEF live across blocks is a special case. In RA these are rewritten to undef flags, unless they are live out. 

https://github.com/llvm/llvm-project/pull/196500


More information about the llvm-commits mailing list