aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-11-29 22:32:02 +0000
committerDan Gohman <dan433584@gmail.com>2015-11-29 22:32:02 +0000
commit7a6b9825cea828916c9f23293f167473b6a61d4e (patch)
treec14bc0ecae09bd2b93368ce290335adea37800dd /llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
parentb67076c0f85992b825d704889e0662753b54580d (diff)
downloadllvm-7a6b9825cea828916c9f23293f167473b6a61d4e.zip
llvm-7a6b9825cea828916c9f23293f167473b6a61d4e.tar.gz
llvm-7a6b9825cea828916c9f23293f167473b6a61d4e.tar.bz2
[WebAssembly] Minor clang-format and selected clang-tidy cleanups. NFC.
llvm-svn: 254267
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
index ba2a0e2..c3847dd 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
@@ -21,8 +21,8 @@
//===----------------------------------------------------------------------===//
#include "WebAssembly.h"
-#include "WebAssemblyMachineFunctionInfo.h"
#include "MCTargetDesc/WebAssemblyMCTargetDesc.h" // for WebAssembly::ARGUMENT_*
+#include "WebAssemblyMachineFunctionInfo.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/CodeGen/MachineBlockFrequencyInfo.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
@@ -201,7 +201,8 @@ bool WebAssemblyRegStackify::runOnMachineFunction(MachineFunction &MF) {
for (MachineBasicBlock &MBB : MF) {
for (MachineInstr &MI : MBB) {
for (MachineOperand &MO : reverse(MI.explicit_operands())) {
- if (!MO.isReg()) continue;
+ if (!MO.isReg())
+ continue;
unsigned VReg = MO.getReg();
if (MFI.isVRegStackified(VReg)) {