mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +00:00
Optimizations got their own header files
Optimizations now live in the 'opt' namespace include/llvm/Opt was renamed include/llvm/Optimizations git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/Opt/AllOpts.h"
|
||||
#include "llvm/Optimizations/InductionVars.h"
|
||||
#include "llvm/ConstPoolVals.h"
|
||||
#include "llvm/Analysis/IntervalPartition.h"
|
||||
#include "llvm/Assembly/Writer.h"
|
||||
@@ -29,6 +29,10 @@
|
||||
#include "llvm/CFG.h"
|
||||
#include <algorithm>
|
||||
|
||||
#include "llvm/Analysis/LoopDepth.h"
|
||||
|
||||
using namespace opt;
|
||||
|
||||
// isLoopInvariant - Return true if the specified value/basic block source is
|
||||
// an interval invariant computation.
|
||||
//
|
||||
@@ -379,13 +383,11 @@ static bool ProcessIntervalPartition(cfg::IntervalPartition &IP) {
|
||||
ptr_fun(ProcessInterval));
|
||||
}
|
||||
|
||||
#include "llvm/Analysis/LoopDepth.h"
|
||||
|
||||
// DoInductionVariableCannonicalize - Simplify induction variables in loops.
|
||||
// This function loops over an interval partition of a program, reducing it
|
||||
// until the graph is gone.
|
||||
//
|
||||
bool DoInductionVariableCannonicalize(Method *M) {
|
||||
bool opt::DoInductionVariableCannonicalize(Method *M) {
|
||||
// TODO: REMOVE
|
||||
if (0) { // Print basic blocks with their depth
|
||||
LoopDepthCalculator LDC(M);
|
||||
|
Reference in New Issue
Block a user