[llvm] r272740 - Make DetectDeadLanes preserve CFG
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 14 17:25:10 PDT 2016
Author: arsenm
Date: Tue Jun 14 19:25:09 2016
New Revision: 272740
URL: http://llvm.org/viewvc/llvm-project?rev=272740&view=rev
Log:
Make DetectDeadLanes preserve CFG
Modified:
llvm/trunk/lib/CodeGen/DetectDeadLanes.cpp
Modified: llvm/trunk/lib/CodeGen/DetectDeadLanes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/DetectDeadLanes.cpp?rev=272740&r1=272739&r2=272740&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/DetectDeadLanes.cpp (original)
+++ llvm/trunk/lib/CodeGen/DetectDeadLanes.cpp Tue Jun 14 19:25:09 2016
@@ -65,6 +65,11 @@ public:
const char *getPassName() const override { return "Detect Dead Lanes"; }
+ void getAnalysisUsage(AnalysisUsage &AU) const override {
+ AU.setPreservesCFG();
+ MachineFunctionPass::getAnalysisUsage(AU);
+ }
+
private:
/// Add used lane bits on the register used by operand \p MO. This translates
/// the bitmask based on the operands subregister, and puts the register into
More information about the llvm-commits
mailing list