Skip to content

Commit

Permalink
Bug 1837686. r=jandem,rhunt,a=dsmith
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-seward1 committed Jul 7, 2023
1 parent 6b27940 commit cd69adf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 1 addition & 6 deletions js/src/jit/AliasAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,7 @@ bool AliasAnalysis::analyze() {
def->setId(newId++);
}

for (MInstructionIterator def(block->begin()),
end(block->begin(block->lastIns()));
for (MInstructionIterator def(block->begin()), end(block->end());
def != end; ++def) {
def->setId(newId++);

Expand Down Expand Up @@ -252,10 +251,6 @@ bool AliasAnalysis::analyze() {
}
}

// Renumber the last instruction, as the analysis depends on this and the
// order.
block->lastIns()->setId(newId++);

if (block->isLoopBackedge()) {
MOZ_ASSERT(loop_->loopHeader() == block->loopHeaderOfBackedge());
JitSpew(JitSpew_Alias, "Processing loop backedge %u (header %u)",
Expand Down
6 changes: 6 additions & 0 deletions js/src/jit/MIR.h
Original file line number Diff line number Diff line change
Expand Up @@ -1724,6 +1724,8 @@ class MTableSwitch final : public MControlInstruction,
}

MDefinition* foldsTo(TempAllocator& alloc) override;

AliasSet getAliasSet() const override { return AliasSet::None(); }
};

template <size_t Arity, size_t Successors>
Expand Down Expand Up @@ -10238,6 +10240,8 @@ class MWasmReturn : public MAryControlInstruction<2, 0>,
public:
INSTRUCTION_HEADER(WasmReturn)
TRIVIAL_NEW_WRAPPERS

AliasSet getAliasSet() const override { return AliasSet::None(); }
};

class MWasmReturnVoid : public MAryControlInstruction<1, 0>,
Expand All @@ -10250,6 +10254,8 @@ class MWasmReturnVoid : public MAryControlInstruction<1, 0>,
public:
INSTRUCTION_HEADER(WasmReturnVoid)
TRIVIAL_NEW_WRAPPERS

AliasSet getAliasSet() const override { return AliasSet::None(); }
};

class MWasmStackArg : public MUnaryInstruction, public NoTypePolicy::Data {
Expand Down

0 comments on commit cd69adf

Please sign in to comment.