mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 05:30:49 +00:00
Restrict scope of variables [NFC]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261250 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
459d220c68
commit
1dddbb7106
@ -99,9 +99,9 @@ bool AtomicExpand::runOnFunction(Function &F) {
|
||||
assert((LI || SI || RMWI || CASI || isa<FenceInst>(I)) &&
|
||||
"Unknown atomic instruction");
|
||||
|
||||
auto FenceOrdering = Monotonic;
|
||||
bool IsStore, IsLoad;
|
||||
if (TLI->getInsertFencesForAtomic()) {
|
||||
auto FenceOrdering = Monotonic;
|
||||
bool IsStore, IsLoad;
|
||||
if (LI && isAtLeastAcquire(LI->getOrdering())) {
|
||||
FenceOrdering = LI->getOrdering();
|
||||
LI->setOrdering(Monotonic);
|
||||
|
Loading…
Reference in New Issue
Block a user