mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-06 12:04:52 +00:00
Add some debugging output so we can tell which calls are getting triggered
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21578 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c915108e1d
commit
8f13261863
@ -16,15 +16,17 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include "llvm/Transforms/IPO.h"
|
#define DEBUG_TYPE "argpromotion"
|
||||||
|
#include "llvm/Constants.h"
|
||||||
|
#include "llvm/DerivedTypes.h"
|
||||||
|
#include "llvm/Instructions.h"
|
||||||
#include "llvm/Module.h"
|
#include "llvm/Module.h"
|
||||||
#include "llvm/Pass.h"
|
#include "llvm/Pass.h"
|
||||||
#include "llvm/DerivedTypes.h"
|
|
||||||
#include "llvm/Constants.h"
|
|
||||||
#include "llvm/Instructions.h"
|
|
||||||
#include "llvm/ADT/Statistic.h"
|
|
||||||
#include "llvm/ADT/hash_map"
|
#include "llvm/ADT/hash_map"
|
||||||
|
#include "llvm/ADT/Statistic.h"
|
||||||
|
#include "llvm/Support/Debug.h"
|
||||||
#include "llvm/Target/TargetData.h"
|
#include "llvm/Target/TargetData.h"
|
||||||
|
#include "llvm/Transforms/IPO.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
@ -167,6 +169,7 @@ bool SimplifyLibCalls::runOnModule(Module &M)
|
|||||||
{
|
{
|
||||||
++SimplifiedLibCalls;
|
++SimplifiedLibCalls;
|
||||||
found_optimization = result = true;
|
found_optimization = result = true;
|
||||||
|
DEBUG(std::cerr << "simplify-libcall: " << CO->getFunctionName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -534,8 +537,7 @@ public:
|
|||||||
virtual bool ValidateCalledFunction(const Function* f, const TargetData& TD)
|
virtual bool ValidateCalledFunction(const Function* f, const TargetData& TD)
|
||||||
{
|
{
|
||||||
// Just make sure this has 4 arguments per LLVM spec.
|
// Just make sure this has 4 arguments per LLVM spec.
|
||||||
return (f->arg_size() == 4) &&
|
return (f->arg_size() == 4);
|
||||||
(f->getReturnType() == Type::VoidTy);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Because of alignment and instruction information that we don't have, we
|
/// Because of alignment and instruction information that we don't have, we
|
||||||
|
Loading…
Reference in New Issue
Block a user