Skip to content

Commit

Permalink
Fix issue JuliaLang#13106 by adding TargetTransformInfoWrapperPass to…
Browse files Browse the repository at this point in the history
… pass list.
  • Loading branch information
Arch D. Robison authored and skumagai committed Oct 9, 2015
1 parent 9133edb commit 86a120c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <llvm/Analysis/Passes.h>
#include <llvm/Bitcode/ReaderWriter.h>
#ifdef LLVM37
#include <llvm/Analysis/TargetTransformInfo.h>
#include <llvm/Analysis/TargetLibraryInfo.h>
#else
#include <llvm/Target/TargetLibraryInfo.h>
Expand Down Expand Up @@ -5752,7 +5753,9 @@ static void init_julia_llvm_env(Module *m)
FPM->add(llvm::createMemorySanitizerPass(true));
# endif
#endif
#ifndef LLVM37
#ifdef LLVM37
FPM->add(createTargetTransformInfoWrapperPass(jl_TargetMachine->getTargetIRAnalysis()));
#else
jl_TargetMachine->addAnalysisPasses(*FPM);
#endif
#ifdef LLVM38
Expand Down

0 comments on commit 86a120c

Please sign in to comment.