<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>Hi, </div>
<div><br>
</div>
<div>I have a question with the latest released LLVM which supports Fence Instruction as IR. Say if I intentionally place a Sequentially Consistent Fence Instruction somewhere in the code, then would the other transformation passes that applied later respect
 the Fence and do not perform any reordering across it?</div>
<div><br>
</div>
<div>Going further, if I place an SC Fence immediately after every load/store instruction, before any opt is done, and then apply those standard compile transformations, would the result code be SC-preserving? In other words, does the compiler restrict any
 reordering for potentially shared accesses that "protected" by these fences?</div>
<div><br>
</div>
<div>Thank you.</div>
<div><br>
</div>
<div>Yuelu</div>
</div>
</body>
</html>