mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Cache TargetLowering on SelectionDAGISel and update previous
calls to getTargetLowering() with the cached variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219284 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -52,6 +52,7 @@ public:
|
||||
GCFunctionInfo *GFI;
|
||||
CodeGenOpt::Level OptLevel;
|
||||
const TargetInstrInfo *TII;
|
||||
const TargetLowering *TLI;
|
||||
|
||||
static char ID;
|
||||
|
||||
@@ -59,9 +60,7 @@ public:
|
||||
CodeGenOpt::Level OL = CodeGenOpt::Default);
|
||||
virtual ~SelectionDAGISel();
|
||||
|
||||
const TargetLowering *getTargetLowering() const {
|
||||
return TM.getSubtargetImpl()->getTargetLowering();
|
||||
}
|
||||
const TargetLowering *getTargetLowering() const { return TLI; }
|
||||
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user