Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.

We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.

Thank you for your understanding.


This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Stack spilling reported by Mali Offline Complier

From the guide, this value is related to register pressure. However, I find that some shader with high "work register" have "stack spilling = false", but some shader with low "work register" have "stack spilling = true". It does not make sense for me.

Parents
  • The number of work registers available is configurable (the compiler can choose; assigning more registers reduces spilling but also reduces thread occupancy so "more registers" isn't always the right choice). Compiler has heuristics to try and make a balanced choice, which a shader author cannot directly influence.

    HTH, 
    Pete

Reply
  • The number of work registers available is configurable (the compiler can choose; assigning more registers reduces spilling but also reduces thread occupancy so "more registers" isn't always the right choice). Compiler has heuristics to try and make a balanced choice, which a shader author cannot directly influence.

    HTH, 
    Pete

Children