aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-02-24 08:30:06 +0000
committerHeejin Ahn <aheejin@gmail.com>2019-02-24 08:30:06 +0000
commit20cf0749cb2b8f6f2ae8fbd146a03684310de793 (patch)
treeb0307fba35bb3c423074c86801f2310b38983bb1 /llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
parent25d924b41fdbdef54ac56757541dbd22714697e4 (diff)
downloadllvm-20cf0749cb2b8f6f2ae8fbd146a03684310de793.zip
llvm-20cf0749cb2b8f6f2ae8fbd146a03684310de793.tar.gz
llvm-20cf0749cb2b8f6f2ae8fbd146a03684310de793.tar.bz2
[WebAssembly] Rename a variable in CFGStackify (NFC)
llvm-svn: 354744
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
index 68b3758..1efd34f 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
@@ -449,11 +449,11 @@ void WebAssemblyCFGStackify::placeTryMarker(MachineBasicBlock &MBB) {
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::placeTryMarker(MachineBasicBlock &MBB) {
// 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::placeTryMarker(MachineBasicBlock &MBB) {
}
// 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;