Displaying 1 result from an estimated 1 matches for "lowerpass".
2009 Jan 23
0
[LLVMdev] Possible bug in PassManager - Higher pass requires lower pass
...chedule the lower pass, but instead run it
when the higher pass calls getAnalysis<>(). Consider, for instance,
this test case:
#include "llvm/Pass.h"
#include "llvm/Analysis/LoopPass.h"
using namespace llvm;
namespace bugs {
// First, the ``lower pass''
class LowerPass : public LoopPass {
public:
static char ID;
LowerPass() : LoopPass(&ID) {}
virtual ~LowerPass() {}
virtual void getAnalysisUsage(AnalysisUsage &use) const {
use.setPreservesAll();
}
virtual bool runOnLoop(Loop *l, LPPassManager &lpm)...