[mips] Fix atomic operations at O0, v3

Description

[mips] Fix atomic operations at O0, v3

Similar to PR/25526, fast-regalloc introduces spills at the end of basic
blocks. When this occurs in between an ll and sc, the stores can cause the
atomic sequence to fail.

This patch fixes the issue by introducing more pseudos to represent atomic
operations and moving their lowering to after the expansion of postRA
pseudos.

This version addresses issues with the initial implementation and covers
all atomic operations.

This resolves PR/32020.

Thanks to James Cowgill for reporting the issue!

Patch By: Simon Dardis

Differential Revision: https://reviews.llvm.org/D31287

Details

Committed
abeserminjiJul 5 2018, 2:27 AM
Differential Revision
D31287: [mips] Fix atomic operations at O0, v3
Parents
rL336327: Dropped non-supoorted "--no-as-needed" flag from OMPT tests for macOS
Branches
Unknown
Tags
Unknown