[llvm] r354744 - [WebAssembly] Rename a variable in CFGStackify (NFC)
Heejin Ahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 24 00:30:07 PST 2019
Author: aheejin
Date: Sun Feb 24 00:30:06 2019
New Revision: 354744
URL: http://llvm.org/viewvc/llvm-project?rev=354744&view=rev
Log:
[WebAssembly] Rename a variable in CFGStackify (NFC)
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp?rev=354744&r1=354743&r2=354744&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp Sun Feb 24 00:30:06 2019
@@ -449,11 +449,11 @@ void WebAssemblyCFGStackify::placeTryMar
MF.push_back(Label);
Iter = std::next(MachineFunction::iterator(Bottom));
}
- MachineBasicBlock *AfterTry = &*Iter;
+ MachineBasicBlock *Cont = &*Iter;
- assert(AfterTry != &MF.front());
+ assert(Cont != &MF.front());
MachineBasicBlock *LayoutPred =
- &*std::prev(MachineFunction::iterator(AfterTry));
+ &*std::prev(MachineFunction::iterator(Cont));
// If the nearest common dominator is inside a more deeply nested context,
// walk out to the nearest scope which isn't more deeply nested.
@@ -545,7 +545,7 @@ void WebAssemblyCFGStackify::placeTryMar
// Decide where in Header to put the END_TRY.
BeforeSet.clear();
AfterSet.clear();
- for (const auto &MI : *AfterTry) {
+ for (const auto &MI : *Cont) {
#ifndef NDEBUG
// END_TRY should precede existing LOOP markers.
if (MI.getOpcode() == WebAssembly::LOOP)
@@ -572,14 +572,14 @@ void WebAssemblyCFGStackify::placeTryMar
}
// Mark the end of the TRY.
- InsertPos = getEarliestInsertPos(AfterTry, BeforeSet, AfterSet);
+ InsertPos = getEarliestInsertPos(Cont, BeforeSet, AfterSet);
MachineInstr *End =
- BuildMI(*AfterTry, InsertPos, Bottom->findBranchDebugLoc(),
+ BuildMI(*Cont, InsertPos, Bottom->findBranchDebugLoc(),
TII.get(WebAssembly::END_TRY));
registerTryScope(Begin, End, &MBB);
// Track the farthest-spanning scope that ends at this point.
- int Number = AfterTry->getNumber();
+ int Number = Cont->getNumber();
if (!ScopeTops[Number] ||
ScopeTops[Number]->getNumber() > Header->getNumber())
ScopeTops[Number] = Header;
More information about the llvm-commits
mailing list