Commit a33abf0b authored by baptiste.afsa's avatar baptiste.afsa Committed by Commit bot

[turbofan] Fix ArchStackPointer properties for instruction scheduling.

ArchStackPointer operation should not be reordered with respect to instructions
which can modify the stack layout.

R=jarin@chromium.org

Review URL: https://codereview.chromium.org/1716543004

Cr-Commit-Position: refs/heads/master@{#34151}
parent 3fa6a3ca
......@@ -172,13 +172,17 @@ void InstructionScheduler::ScheduleBlock() {
int InstructionScheduler::GetInstructionFlags(const Instruction* instr) const {
switch (instr->arch_opcode()) {
case kArchNop:
case kArchStackPointer:
case kArchFramePointer:
case kArchParentFramePointer:
case kArchTruncateDoubleToI:
case kArchStackSlot:
return kNoOpcodeFlags;
case kArchStackPointer:
// ArchStackPointer instruction loads the current stack pointer value and
// must not be reordered with instruction with side effects.
return kIsLoadOperation;
case kArchPrepareCallCFunction:
case kArchPrepareTailCall:
case kArchCallCFunction:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment