Run SimplifyLibCalls near the beginning, not at
authorDuncan Sands <baldrick@free.fr>
Thu, 17 Apr 2008 12:03:38 +0000 (12:03 +0000)
committerDuncan Sands <baldrick@free.fr>
Thu, 17 Apr 2008 12:03:38 +0000 (12:03 +0000)
commitfa191e4cd47f0c518c9a148701df6d4aea6dc97c
tree8d4a4715cdd451609980de87307a14d906e59591
parent02819257a625d0d9a186845354baadd6e8f1890b
Run SimplifyLibCalls near the beginning, not at
the end.  It is now run at the same moment as in
llvm-gcc.  Also, run StripDeadPrototypes at the
end, just before running DeadTypeElimination.
This may be useful when doing LTO.  Note that
llvm-gcc runs StripDeadPrototypes but not
DeadTypeElimination.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49848 91177308-0d34-0410-b5e6-96231b3b80d8
tools/opt/opt.cpp