[llvm] r255251 - [WebAssembly] Declare that WebAssemblyPeephole does not modify the CFG.
Dan Gohman via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 10 06:12:04 PST 2015
Author: djg
Date: Thu Dec 10 08:12:04 2015
New Revision: 255251
URL: http://llvm.org/viewvc/llvm-project?rev=255251&view=rev
Log:
[WebAssembly] Declare that WebAssemblyPeephole does not modify the CFG.
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyPeephole.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyPeephole.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyPeephole.cpp?rev=255251&r1=255250&r2=255251&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyPeephole.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyPeephole.cpp Thu Dec 10 08:12:04 2015
@@ -26,6 +26,11 @@ class WebAssemblyPeephole final : public
return "WebAssembly late peephole optimizer";
}
+ void getAnalysisUsage(AnalysisUsage &AU) const override {
+ AU.setPreservesCFG();
+ MachineFunctionPass::getAnalysisUsage(AU);
+ }
+
bool runOnMachineFunction(MachineFunction &MF) override;
public:
More information about the llvm-commits
mailing list