aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorAnna Thomas <anna@azul.com>2022-01-28 13:45:04 -0800
committerAnna Thomas <anna@azul.com>2022-02-01 11:05:34 -0800
commit4fc52db116033253ad5b078b317a9f7ae0db87d2 (patch)
tree7dfdc03ddd746d792a8273558542174aa6b56170 /llvm/lib/MC/MCObjectFileInfo.cpp
parent91fb66cf91ae557d45bde7931cbb364f1c08d245 (diff)
downloadllvm-4fc52db116033253ad5b078b317a9f7ae0db87d2.zip
llvm-4fc52db116033253ad5b078b317a9f7ae0db87d2.tar.gz
llvm-4fc52db116033253ad5b078b317a9f7ae0db87d2.tar.bz2
[InstCombine] Remove weaker fence adjacent to a stronger fence
We have an instCombine rule to remove identical consecutive fences. We can extend this to remove weaker fences when we have consecutive stronger fence. As stated in the LangRef, a fence with a stronger ordering also implies ordering weaker than itself: "A fence which has seq_cst ordering, in addition to having both acquire and release semantics specified above, participates in the global program order of other seq_cst operations and/or fences." Reviewed-By: reames Differential Revision: https://reviews.llvm.org/D118607
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
0 files changed, 0 insertions, 0 deletions