forked from OSchip/llvm-project
Register if-converter pass for -debug-pass.
llvm-svn: 51931
This commit is contained in:
parent
93af6ce129
commit
c5b3a3bea5
|
@ -149,7 +149,7 @@ namespace {
|
|||
IfConverter() : MachineFunctionPass((intptr_t)&ID) {}
|
||||
|
||||
virtual bool runOnMachineFunction(MachineFunction &MF);
|
||||
virtual const char *getPassName() const { return "If converter"; }
|
||||
virtual const char *getPassName() const { return "If Converter"; }
|
||||
|
||||
private:
|
||||
bool ReverseBranchCondition(BBInfo &BBI);
|
||||
|
@ -215,6 +215,9 @@ namespace {
|
|||
char IfConverter::ID = 0;
|
||||
}
|
||||
|
||||
static RegisterPass<IfConverter>
|
||||
X("if-converter", "If Converter");
|
||||
|
||||
FunctionPass *llvm::createIfConverterPass() { return new IfConverter(); }
|
||||
|
||||
bool IfConverter::runOnMachineFunction(MachineFunction &MF) {
|
||||
|
|
Loading…
Reference in New Issue