If all stores only store the initializer value of a global, consider it
as not stored in the heuristic. GlobalOpt will remove such stores later
on.
Depends on D129857.
Differential D144476
[GlobalOpt] Extend logic in SRA heuristic to skip stores of initializer. fhahn on Feb 21 2023, 5:23 AM. Authored by
Details If all stores only store the initializer value of a global, consider it Depends on D129857.
Diff Detail
Event TimelineComment Actions Update to use ConstantFoldLoadFromConst to check the initializer value in the specifi field.
Comment Actions LGTM, though I think it might be cleaner if we collected the initializer part during the construction of GlobalPart, rather than calculating it twice, here and during the SRA split. |