- Jan 27, 2010
-
-
Benjamin Kramer authored
llvm-svn: 94684
-
Benjamin Kramer authored
llvm-svn: 94683
-
Chandler Carruth authored
if this is the "correct" fix, but it seems a strict improvement. llvm-svn: 94675
-
Chandler Carruth authored
llvm-svn: 94673
-
Mikhail Glushenkov authored
llvm-svn: 94672
-
Mikhail Glushenkov authored
llvm-svn: 94671
-
Duncan Sands authored
It causes g++ to complain: unrecognized option '-Qunused-arguments' llvm-svn: 94670
-
Chris Lattner authored
which allows targets to override function entry label emission. Use it to convert linux/ppc to use EmitFunctionHeader(). llvm-svn: 94667
-
Daniel Dunbar authored
llvm-svn: 94666
-
Evan Cheng authored
even when -tailcallopt is not specified and it does not require changing ABI. First case is the most trivial one. Perform tail call optimization when both the caller and callee do not return values and when the callee does not take any input arguments. llvm-svn: 94664
-
Chris Lattner authored
llvm-svn: 94650
-
Chris Lattner authored
llvm-svn: 94649
-
Chris Lattner authored
llvm-svn: 94648
-
Evan Cheng authored
llvm-svn: 94646
-
Chris Lattner authored
This should fix a bunch of linux buildbot failures. llvm-svn: 94643
-
Victor Hernandez authored
llvm-svn: 94634
-
Victor Hernandez authored
llvm-svn: 94632
-
Chris Lattner authored
a new set of them. llvm-svn: 94631
-
Chris Lattner authored
EmitFunctionHeader: 7 files changed, 16 insertions(+), 210 deletions(-) llvm-svn: 94630
-
Evan Cheng authored
llvm-svn: 94628
-
Jim Grosbach authored
llvm-svn: 94627
-
Evan Cheng authored
Target independent isel should always pass along the "tail call" property. Change target hook LowerCall's parameter "isTailCall" into a refernce. If the target decides it's impossible to honor the tail call request, it should set isTailCall to false to make target independent isel happy. llvm-svn: 94626
-
Evan Cheng authored
llvm-svn: 94625
-
Chris Lattner authored
llvm-svn: 94624
-
Chris Lattner authored
change is that we now use ".linkonce discard" for global variables instead of ".linkonce samesize". These should be the same, just less strict. If anyone is interested in mcizing MCSection for COFF targets, this should be easy to fix. llvm-svn: 94623
-
Chris Lattner authored
llvm-svn: 94621
-
Chris Lattner authored
llvm-svn: 94620
-
Jeffrey Yasskin authored
broken by setting CXXFLAGS on the command line. llvm-svn: 94619
-
Victor Hernandez authored
llvm-svn: 94618
-
Evan Cheng authored
llvm-svn: 94617
-
Chris Lattner authored
llvm-svn: 94616
-
Jakob Stoklund Olesen authored
After running a batch of measurements, it is clear that the inliner metrics need some adjustments: Own argument bonus: 20 -> 5 Outgoing argument penalty: 0 -> 5 Alloca bonus: 10 -> 5 Constant instr bonus: 7 -> 5 Dead successor bonus: 40 -> 5*(avg instrs/block) The new cost metrics are generaly 25 points higher than before, so we may need to move thresholds. With this change, InlineConstants::CallPenalty becomes a political correction: if (!isa<IntrinsicInst>(II) && !callIsSmall(CS.getCalledFunction())) NumInsts += InlineConstants::CallPenalty + CS.arg_size(); The code size is accurately modelled by CS.arg_size(). CallPenalty is added because calls tend to take a long time, so it may not be worth it to inline a function with lots of calls. All of the political corrections are in the InlineConstants namespace: IndirectCallBonus, CallPenalty, LastCallToStaticBonus, ColdccPenalty, NoreturnPenalty. llvm-svn: 94615
-
Chris Lattner authored
logic up from X86 into the common code. The other targets will hopefully start using this soon. llvm-svn: 94614
-
Chris Lattner authored
is constified. llvm-svn: 94613
-
Chris Lattner authored
llvm-svn: 94612
-
Evan Cheng authored
llvm-svn: 94611
-
Evan Cheng authored
llvm-svn: 94610
-
- Jan 26, 2010
-
-
Chris Lattner authored
llvm-svn: 94601
-
Devang Patel authored
Before existing NamedMDNode entry in the symbol table, remove any existing entry with the same name. llvm-svn: 94600
-
Chris Lattner authored
assignments. .set x, a-b is the same as: x = a-b llvm-svn: 94596
-