Skip to content

Commit

Permalink
Merge pull request #531 from MatthewFluet/x86-fltstack-reg-alloc-bug
Browse files Browse the repository at this point in the history
Bug with x86 register allocation of floating-point stack
  • Loading branch information
MatthewFluet authored Nov 11, 2023
2 parents 04d7690 + 8c6450e commit 58ddf1e
Showing 1 changed file with 10 additions and 33 deletions.
43 changes: 10 additions & 33 deletions mlton/codegen/x86-codegen/x86-allocate-registers.fun
Original file line number Diff line number Diff line change
Expand Up @@ -6599,18 +6599,18 @@ struct
registerAllocation,
src, dst, srcsize, dstsize} =
let
val {uses,defs,kills}
= Instruction.uses_defs_kills instruction
val {assembly = assembly_pre,
registerAllocation}
= RA.pre {uses = uses,
defs = defs,
kills = kills,
info = info,
registerAllocation = registerAllocation}

fun default ()
= let
val {uses,defs,kills}
= Instruction.uses_defs_kills instruction
val {assembly = assembly_pre,
registerAllocation}
= RA.pre {uses = uses,
defs = defs,
kills = kills,
info = info,
registerAllocation = registerAllocation}

val {operand = final_src,
assembly = assembly_src,
registerAllocation,
Expand Down Expand Up @@ -6680,16 +6680,6 @@ struct

fun default' ()
= let
val {uses,defs,kills}
= Instruction.uses_defs_kills instruction
val {assembly = assembly_pre,
registerAllocation}
= RA.pre {uses = uses,
defs = defs,
kills = kills,
info = info,
registerAllocation = registerAllocation}

val {operand = final_src,
assembly = assembly_src,
registerAllocation,
Expand Down Expand Up @@ -6799,19 +6789,6 @@ struct
registerAllocation
= registerAllocation}

val {uses,defs,kills}
= Instruction.uses_defs_kills
instruction
val {assembly = assembly_pre,
registerAllocation}
= RA.pre
{uses = uses,
defs = defs,
kills = kills,
info = info,
registerAllocation
= registerAllocation}

val final_uses = []
val final_defs
= [Operand.fltregister
Expand Down

0 comments on commit 58ddf1e

Please sign in to comment.