mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
Constant pointer refs are causing these to fail unnecessarily, which is causing
a lot of code to be pessimized. I hate CPRs. :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9635 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
3c3acaa957
commit
b10bed8a63
3 files changed
+42
-15
No files matched your search
@@ -69,12 +69,10 @@ public:
|
||||
virtual Instruction *clone() const { return new CallInst(*this); }
|
||||
bool mayWriteToMemory() const { return true; }
|
||||
|
||||
const Function *getCalledFunction() const {
|
||||
return dyn_cast<Function>(Operands[0].get());
|
||||
}
|
||||
Function *getCalledFunction() {
|
||||
return dyn_cast<Function>(Operands[0].get());
|
||||
}
|
||||
// FIXME: These methods should be inline once we eliminate
|
||||
// ConstantPointerRefs!
|
||||
const Function *getCalledFunction() const;
|
||||
Function *getCalledFunction();
|
||||
|
||||
// getCalledValue - Get a pointer to a method that is invoked by this inst.
|
||||
inline const Value *getCalledValue() const { return Operands[0]; }
|
||||
|
||||
@@ -214,15 +214,13 @@ public:
|
||||
|
||||
bool mayWriteToMemory() const { return true; }
|
||||
|
||||
// getCalledFunction - Return the function called, or null if this is an
|
||||
// indirect function invocation...
|
||||
//
|
||||
inline const Function *getCalledFunction() const {
|
||||
return dyn_cast<Function>(Operands[0].get());
|
||||
}
|
||||
inline Function *getCalledFunction() {
|
||||
return dyn_cast<Function>(Operands[0].get());
|
||||
}
|
||||
/// getCalledFunction - Return the function called, or null if this is an
|
||||
/// indirect function invocation...
|
||||
///
|
||||
/// FIXME: These should be inlined once we get rid of ConstantPointerRefs!
|
||||
///
|
||||
const Function *getCalledFunction() const;
|
||||
Function *getCalledFunction();
|
||||
|
||||
// getCalledValue - Get a pointer to a function that is invoked by this inst.
|
||||
inline const Value *getCalledValue() const { return Operands[0]; }
|
||||
|
||||
Reference in new issue
Block a user