mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
change Target.getInstructionsByEnumValue to return a reference
to a vector that CGT stores instead of synthesizing it on every call. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98910 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2362,8 +2362,8 @@ void CodeGenDAGPatterns::AddPatternToMatch(const TreePattern *Pattern,
|
||||
|
||||
|
||||
void CodeGenDAGPatterns::InferInstructionFlags() {
|
||||
std::vector<const CodeGenInstruction*> Instructions;
|
||||
Target.getInstructionsByEnumValue(Instructions);
|
||||
const std::vector<const CodeGenInstruction*> &Instructions =
|
||||
Target.getInstructionsByEnumValue();
|
||||
for (unsigned i = 0, e = Instructions.size(); i != e; ++i) {
|
||||
CodeGenInstruction &InstInfo =
|
||||
const_cast<CodeGenInstruction &>(*Instructions[i]);
|
||||
|
Reference in New Issue
Block a user