[PATCH] D105836: [AMDGPU] Add TII::isAmbientPhysRegUse() to allow VOP rematerialization

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 14 11:05:33 PDT 2021


rampitec added a comment.

In D105836#2877641 <https://reviews.llvm.org/D105836#2877641>, @kparzysz wrote:

> I think it would be a lot better to add the concept of a "rematerializable" physical register.  I think that currently physical registers are considered volatile, unless they are constant, but there was some talk a while back about refining the classification to allow exactly this sort of thing.

There was such idea, but it unfortunately not applicable here. SALU instructions and even some VALU instructions can use EXEC as a data operand. That is only a special implicit use on a VALU instruction is a non-data use to be ignored.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105836/new/

https://reviews.llvm.org/D105836



More information about the llvm-commits mailing list