diff options
author | Rin Dobrescu <irina.dobrescu@arm.com> | 2024-05-03 10:30:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-03 10:30:22 +0100 |
commit | 385f59f9f570b77bf8bd636ba2f65a08a7227499 (patch) | |
tree | 234d8b73a968650b8a9ed125ba18477434246ab0 /llvm/lib/IR/Module.cpp | |
parent | b4e751e2ab0ff152ed18dea59ebf9691e963e1dd (diff) | |
download | llvm-385f59f9f570b77bf8bd636ba2f65a08a7227499.zip llvm-385f59f9f570b77bf8bd636ba2f65a08a7227499.tar.gz llvm-385f59f9f570b77bf8bd636ba2f65a08a7227499.tar.bz2 |
[llvm-mca] Teach MCA constant registers do not create dependencies (#89387)
Constant registers like the zero registers XZR and WZR are treated as
any other register by LLVM-MCA. This can create non existent dependency
chains.
Currently there is no method in MCA to query if a register is constant.
This patch fixes the issue by adding a bool Constant
variable to MCRegisterDesc that is true for constant registers. Since
constant registers do not create dependencies, it makes sense to add
this check to MCA.
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions