projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dc8c1b
)
[WebAssembly] Declare that WebAssemblyPeephole does not modify the CFG.
author
Dan Gohman
<dan433584@gmail.com>
Thu, 10 Dec 2015 14:12:04 +0000
(14:12 +0000)
committer
Dan Gohman
<dan433584@gmail.com>
Thu, 10 Dec 2015 14:12:04 +0000
(14:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255251
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/WebAssembly/WebAssemblyPeephole.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/WebAssembly/WebAssemblyPeephole.cpp
b/lib/Target/WebAssembly/WebAssemblyPeephole.cpp
index 11f44775b5ea0f1d7a6560e4943bbd7ea9c185d3..77514bbde7ef49e08b0e8986bbcd65f334eb32fe 100644
(file)
--- a/
lib/Target/WebAssembly/WebAssemblyPeephole.cpp
+++ b/
lib/Target/WebAssembly/WebAssemblyPeephole.cpp
@@
-26,6
+26,11
@@
class WebAssemblyPeephole final : public MachineFunctionPass {
return "WebAssembly late peephole optimizer";
}
+ void getAnalysisUsage(AnalysisUsage &AU) const override {
+ AU.setPreservesCFG();
+ MachineFunctionPass::getAnalysisUsage(AU);
+ }
+
bool runOnMachineFunction(MachineFunction &MF) override;
public: