diff --git a/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp b/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp index dbd00bc10b1..110316ba57b 100644 --- a/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp +++ b/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp @@ -341,7 +341,7 @@ bool WebAssemblyCFGStackify::runOnMachineFunction(MachineFunction &MF) { PlaceMarkers(MF, MLI, TII, MDT); #ifndef NDEBUG - // Verify that block and loop beginnings and endings are in FIFO order, and + // Verify that block and loop beginnings and endings are in LIFO order, and // that all references to blocks are to blocks on the stack at the point of // the reference. SmallVector, 0> Stack; diff --git a/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h b/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h index 4760f0d576e..62c5f33cfad 100644 --- a/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h +++ b/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h @@ -37,7 +37,7 @@ class WebAssemblyFunctionInfo final : public MachineFunctionInfo { /// determined or made to meet the stack requirements: /// - single use (per path) /// - single def (per path) - /// - defined and used in FIFO order with other stack registers + /// - defined and used in LIFO order with other stack registers BitVector VRegStackified; public: diff --git a/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp b/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp index c3847dd9fcb..bdccc8577c5 100644 --- a/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp +++ b/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp @@ -117,7 +117,7 @@ bool WebAssemblyRegStackify::runOnMachineFunction(MachineFunction &MF) { break; // Iterate through the inputs in reverse order, since we'll be pulling - // operands off the stack in FIFO order. + // operands off the stack in LIFO order. bool AnyStackified = false; for (MachineOperand &Op : reverse(Insert->uses())) { // We're only interested in explicit virtual register operands. diff --git a/lib/Target/WebAssembly/WebAssemblyRegisterInfo.td b/lib/Target/WebAssembly/WebAssemblyRegisterInfo.td index 4057ff7a9b4..80a83fa76b5 100644 --- a/lib/Target/WebAssembly/WebAssemblyRegisterInfo.td +++ b/lib/Target/WebAssembly/WebAssemblyRegisterInfo.td @@ -40,7 +40,7 @@ def F32_0 : WebAssemblyReg<"%f32.0">; def F64_0 : WebAssemblyReg<"%f64.0">; // The expression stack "register". This is an opaque entity which serves to -// order uses and defs that must remain in FIFO order. +// order uses and defs that must remain in LIFO order. def EXPR_STACK : WebAssemblyReg<"STACK">; // The incoming arguments "register". This is an opaque entity which serves to