aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2023-09-14 16:29:30 +0100
committerGitHub <noreply@github.com>2023-09-14 16:29:30 +0100
commit74724902ba2fc0dc2734cdb5fae15cb338f1b635 (patch)
tree0e88d314134602bdedc10e5a1b0b06c36e99bc41 /clang/lib/Frontend/CompilerInvocation.cpp
parent360c6290240910991bcd660297b3e615cb8f3216 (diff)
downloadllvm-74724902ba2fc0dc2734cdb5fae15cb338f1b635.zip
llvm-74724902ba2fc0dc2734cdb5fae15cb338f1b635.tar.gz
llvm-74724902ba2fc0dc2734cdb5fae15cb338f1b635.tar.bz2
[AArch64] Split Ampere1Write_Arith into rr/ri and rs/rx InstRWs. (#66384)
The ampere1 scheduling model uses IsCheapLSL predicates for ADDXri and ADDWrr instructions, which only have 3 operands. In attempting to check that the third is a shift, the predicate can attempt to access an out of bounds operand, hitting an assert. This splits the rr/ri instructions (which can never have shifts) from the rs/rx instructions to ensure they both work correctly. Ampere1Write_1cyc_1AB was chosen for the rr/ir instructions to match the cheap case. This also sets CompleteModel = 0 for the ampere1 scheduling model, as at runtime under debug it will attempt to check that as well as all instructions having scheduling info, there is information for each output operand. DefIdx 1 exceeds machine model writes for renamable $w9, renamable $w8 = LDPWi renamable $x8, 0 (Try with MCSchedModel.CompleteModel set to false)incomplete machine model
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions