diff options
author | Pete Cooper <peter_cooper@apple.com> | 2014-09-02 17:43:54 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2014-09-02 17:43:54 +0000 |
commit | 11759457101688ed50ed14725c78df5406f82bd8 (patch) | |
tree | 10706fd2d622d2c0499f665cadaaee951c8d6291 /llvm/lib/CodeGen/EarlyIfConversion.cpp | |
parent | 505e1b829fd181a12ffc4b62f00cbe8d61c92c2c (diff) | |
download | bcm5719-llvm-11759457101688ed50ed14725c78df5406f82bd8.tar.gz bcm5719-llvm-11759457101688ed50ed14725c78df5406f82bd8.zip |
Change MCSchedModel to be a struct of statically initialized data.
This removes static initializers from the backends which generate this data, and also makes this struct match the other Tablegen generated structs in behaviour
Reviewed by Andy Trick and Chandler C
llvm-svn: 216919
Diffstat (limited to 'llvm/lib/CodeGen/EarlyIfConversion.cpp')
-rw-r--r-- | llvm/lib/CodeGen/EarlyIfConversion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/EarlyIfConversion.cpp b/llvm/lib/CodeGen/EarlyIfConversion.cpp index 4a64d79d7e7..43d89241e44 100644 --- a/llvm/lib/CodeGen/EarlyIfConversion.cpp +++ b/llvm/lib/CodeGen/EarlyIfConversion.cpp @@ -580,7 +580,7 @@ namespace { class EarlyIfConverter : public MachineFunctionPass { const TargetInstrInfo *TII; const TargetRegisterInfo *TRI; - const MCSchedModel *SchedModel; + MCSchedModel SchedModel; MachineRegisterInfo *MRI; MachineDominatorTree *DomTree; MachineLoopInfo *Loops; @@ -688,7 +688,7 @@ bool EarlyIfConverter::shouldConvertIf() { FBBTrace.getCriticalPath()); // Set a somewhat arbitrary limit on the critical path extension we accept. - unsigned CritLimit = SchedModel->MispredictPenalty/2; + unsigned CritLimit = SchedModel.MispredictPenalty/2; // If-conversion only makes sense when there is unexploited ILP. Compute the // maximum-ILP resource length of the trace after if-conversion. Compare it |