aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/Target.cpp
diff options
context:
space:
mode:
authorEli Friedman <efriedma@quicinc.com>2021-05-28 14:05:07 -0700
committerEli Friedman <efriedma@quicinc.com>2021-06-03 11:34:35 -0700
commit44cdf771fe12ca528403cec9e6a8438b5107133b (patch)
tree1336c0debe8beaba79beb68155d9cb12e25c2783 /llvm/lib/TextAPI/Target.cpp
parent5a2aec3f27abbd11cf4ab40f559bedcd4a1a7987 (diff)
downloadllvm-44cdf771fe12ca528403cec9e6a8438b5107133b.zip
llvm-44cdf771fe12ca528403cec9e6a8438b5107133b.tar.gz
llvm-44cdf771fe12ca528403cec9e6a8438b5107133b.tar.bz2
[AtomicExpand] Merge cmpxchg success and failure ordering when appropriate.
If we're not emitting separate fences for the success/failure cases, we need to pass the merged ordering to the target so it can emit the correct instructions. For the PowerPC testcase, we end up with extra fences, but that seems like an improvement over missing fences. If someone wants to improve that, the PowerPC backed could be taught to emit the fences after isel, instead of depending on fences emitted by AtomicExpand. Fixes https://bugs.llvm.org/show_bug.cgi?id=33332 . Differential Revision: https://reviews.llvm.org/D103342
Diffstat (limited to 'llvm/lib/TextAPI/Target.cpp')
0 files changed, 0 insertions, 0 deletions