aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorRin Dobrescu <irina.dobrescu@arm.com>2024-05-03 10:30:22 +0100
committerGitHub <noreply@github.com>2024-05-03 10:30:22 +0100
commit385f59f9f570b77bf8bd636ba2f65a08a7227499 (patch)
tree234d8b73a968650b8a9ed125ba18477434246ab0 /llvm/lib/IR/Module.cpp
parentb4e751e2ab0ff152ed18dea59ebf9691e963e1dd (diff)
downloadllvm-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