From: Matt Arsenault Date: Wed, 15 Jun 2016 00:25:09 +0000 (+0000) Subject: Make DetectDeadLanes preserve CFG X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8697a18bc2e33bb86dcfc934318260a8af61e21f;p=llvm Make DetectDeadLanes preserve CFG git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272740 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/DetectDeadLanes.cpp b/lib/CodeGen/DetectDeadLanes.cpp index 2ba81c7cfe2..1d9e79c055e 100644 --- a/lib/CodeGen/DetectDeadLanes.cpp +++ b/lib/CodeGen/DetectDeadLanes.cpp @@ -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