Open blackgeorge-boom opened 10 months ago
Before and after stack slot coloring:
arm
32B STRWui $w4, %stack.1, 0 :: (store 4 into %stack.1)
48B STRWui $w3, %stack.2, 0 :: (store 4 into %stack.2)
64B STRXui $x2, %stack.3, 0 :: (store 8 into %stack.3)
# becomes
32B STRWui $w4, %stack.2, 0 :: (store 4 into %stack.2)
48B STRWui $w3, %stack.0, 0 :: (store 4 into %stack.0)
64B STRXui $x2, %stack.3, 0 :: (store 8 into %stack.3)
x86
32B MOV32mr %stack.1, 1, $noreg, 0, $noreg, $r8d :: (store 4 into %stack.1)
48B MOV32mr %stack.2, 1, $noreg, 0, $noreg, $ecx :: (store 4 into %stack.2)
64B renamable $edx = KILL $edx, implicit-def $rdx
72B MOV64mr %stack.3, 1, $noreg, 0, $noreg, killed renamable $rdx :: (store 8 into %stack.3)
# becomes
32B MOV32mr %stack.2, 1, $noreg, 0, $noreg, $r8d :: (store 4 into %stack.2)
48B MOV32mr %stack.3, 1, $noreg, 0, $noreg, $ecx :: (store 4 into %stack.3)
64B renamable $edx = KILL $edx, implicit-def $rdx
72B MOV64mr %stack.0, 1, $noreg, 0, $noreg, killed renamable $rdx :: (store 8 into %stack.0)