summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2001-10-18 18:20:20 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2001-10-18 18:20:20 +0000
commit71f16ecf1354e9872f3d300f121f9aea94735591 (patch)
tree86afc40592efbcceeaa7b624dfbb7c3688743b0e /llvm/tools
parenta0db1c9a0ec1b4c7c71a6988d580e416fd9d1bfc (diff)
downloadbcm5719-llvm-71f16ecf1354e9872f3d300f121f9aea94735591.tar.gz
bcm5719-llvm-71f16ecf1354e9872f3d300f121f9aea94735591.zip
Move malloc/free lowering after tracing until lli supports
calls to external malloc/free functions. llvm-svn: 893
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llc/llc.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp
index 76364aabc23..3761b3aa892 100644
--- a/llvm/tools/llc/llc.cpp
+++ b/llvm/tools/llc/llc.cpp
@@ -121,9 +121,6 @@ int main(int argc, char **argv) {
// Build up all of the passes that we want to do to the module...
vector<Pass*> Passes;
- // Replace malloc and free instructions with library calls
- Passes.push_back(new LowerAllocations(Target.DataLayout));
-
// Hoist constants out of PHI nodes into predecessor BB's
Passes.push_back(new HoistPHIConstants());
@@ -148,10 +145,16 @@ int main(int argc, char **argv) {
} else {
Passes.push_back(new PrintModulePass("", os,
/*deleteStream*/ true,
- /*printAsBytecode*/ ! DebugTrace));
+ /*printPerMethod*/ false,
+ /*printAsBytecode*/ !DebugTrace));
}
}
+ // Replace malloc and free instructions with library calls.
+ // Do this after tracing until lli implements these lib calls.
+ // For now, it will emulate malloc and free internally.
+ Passes.push_back(new LowerAllocations(Target.DataLayout));
+
// If LLVM dumping after transformations is requested, add it to the pipeline
if (DumpAsm)
Passes.push_back(new PrintModulePass("Code after xformations: \n",&cerr));
OpenPOWER on IntegriCloud