HomePhabricator

[X86] Fix tile config register spill issue.

Authored by pengfei on Jan 29 2021, 8:00 PM.

Description

[X86] Fix tile config register spill issue.

This is an optimized approach for D94155.

Previous code build the model that tile config register is the user of
each AMX instruction. There is a problem for the tile config register
spill. When across function, the ldtilecfg instruction may be inserted
on each AMX instruction which use tile config register. This cause all
tile data register clobber.

To fix this issue, we remove the model of tile config register. Instead,
we analyze the AMX instructions between one call to another. We will
insert ldtilecfg after the first call if we find any AMX instructions.

Reviewed By: LuoYuanke

Differential Revision: https://reviews.llvm.org/D95136

Details

Committed
pengfeiJan 29 2021, 8:53 PM
Reviewer
LuoYuanke
Differential Revision
D95136: [X86] Fix tile config register spill issue.
Parents
rGc32f3998029d: Detect Source Drift with Propeller.
Branches
Unknown
Tags
Unknown