- Jul 25, 2011
-
-
Jakub Staszak authored
MachineBlockFrequencyInfo. llvm-svn: 135937
-
Evan Cheng authored
llvm-svn: 135930
-
Bill Wendling authored
llvm-svn: 135924
-
Bill Wendling authored
llvm-svn: 135923
-
Bill Wendling authored
unwind encoding for that function. This simply crawls through the prolog looking for machine instrs marked as "frame setup". It can calculate from these what the compact unwind should look like. This is currently disabled because of needed linker support. But initial tests look good. llvm-svn: 135922
-
Jim Grosbach authored
The .local, .hidden, .internal, and .protected are not legal for all supported file formats (in particular, they're invalid for MachO). Move the parsing for them into the ELF assembly parser since that's the format they're for. Similarly, .weak is used by COFF and ELF, but not MachO, so move the parsing to the COFF and ELF asm parsers. Previously, using any of these directives on Darwin would result in an assertion failure in the parser; now we get a diagnostic as we should. rdar://9827089 llvm-svn: 135921
-
Jim Grosbach authored
llvm-svn: 135917
-
Jakob Stoklund Olesen authored
This mechanism already exists, but the RS_Split2 stage makes it clearer. When live range splitting creates ranges that may not be making progress, they are marked RS_Split2 instead of RS_New. These ranges may be split again, but only in a way that can be proven to make progress. For local ranges, that means they must be split into ranges used by strictly fewer instructions. For global ranges, region splitting is bypassed and the RS_Split2 ranges go straight to per-block splitting. llvm-svn: 135912
-
Jakob Stoklund Olesen authored
The stage is used to control where a live range is going, not where it is coming from. Live ranges created by splitting will usually be marked RS_New, but some are marked RS_Spill to avoid wasting time trying to split them again. The old RS_Global and RS_Local stages are merged - they are really the same thing for local and global live ranges. llvm-svn: 135911
-
Frits van Bommel authored
llvm-svn: 135910
-
Jay Foad authored
llvm-svn: 135905
-
Jay Foad authored
llvm-svn: 135904
-
- Jul 24, 2011
-
-
Chris Lattner authored
llvm-svn: 135889
-
Chris Lattner authored
to eliminate some casting. llvm-svn: 135888
-
Jakob Stoklund Olesen authored
llvm-svn: 135886
-
Jakob Stoklund Olesen authored
This fixes PR10463. A two-address instruction with an <undef> use operand was incorrectly rewritten so the def and use no longer used the same register, violating the tie constraint. Fix this by always rewriting <undef> operands with the register a def operand would use. llvm-svn: 135885
-
Roman Divacky authored
llvm-svn: 135866
-
- Jul 23, 2011
-
-
Jakob Stoklund Olesen authored
This method computes the edge bundles that should be live when splitting around a compact region. This is independent of interference. The function returns false if the live range was already a compact region, or the compact region doesn't have any live bundles - it would be the same as splitting around basic blocks. Compact regions are computed using the normal spill placement code. We pretend there is interference in all live-through blocks that don't use the live range. This removes all edges from the Hopfield network used for spill placement, so it converges instantly. llvm-svn: 135847
-
Jakob Stoklund Olesen authored
If there is no interference and no last split point, we cannot enterIntvBefore(Stop) - that function needs a real instruction. Use enterIntvAtEnd instead for that very easy case. This code doesn't currently run, it is needed by multi-way splitting. llvm-svn: 135846
-
Jakob Stoklund Olesen authored
A split candidate can have a null PhysReg which means that it doesn't map to a real interference pattern. Instead, pretend that all through blocks have interference. This makes it possible to generate compact regions where the live range doesn't go through blocks that don't use it. The live range will still be live between directly connected blocks with uses. Splitting around a compact region tends to produce a live range with a high spill weight, so it may evict a less dense live range. llvm-svn: 135845
-
Jakob Stoklund Olesen authored
This method matches addLinks - All the listed blocks are considered to have interference, so they add a negative bias to their bundles. This could also be done by addConstraints, but that requires building a separate BlockConstraint array. llvm-svn: 135844
-
Jakob Stoklund Olesen authored
They always report 'no interference'. llvm-svn: 135843
-
NAKAMURA Takumi authored
llvm-svn: 135837
-
Evan Cheng authored
llvm-svn: 135833
-
Andrew Trick authored
removes its dependence on canonical induction variables. llvm-svn: 135829
-
Andrew Trick authored
llvm-svn: 135828
-
Evan Cheng authored
llvm-svn: 135826
-
Evan Cheng authored
llvm-svn: 135825
-
Jim Grosbach authored
The immediate is in the range 1-32, but is encoded as 0-31 in a 5-bit bitfield. Update the representation such that we store the operand as 0-31, allowing us to remove the encoder method and the special case handling in the disassembler. Update the assembly parser and the instruction printer accordingly. llvm-svn: 135823
-
Dan Gohman authored
so that a declaration for objc_retain is created when needed if it doesn't already exist. rdar://9825114. llvm-svn: 135821
-
Jim Grosbach authored
Tests for SMULBB, SMLALBT, SMLALTB, SMLALTT, and SMULL. Fix parsing of SMULLS. llvm-svn: 135817
-
- Jul 22, 2011
-
-
Evan Cheng authored
InitializeX86MCInstrInfo, etc. are combined into InitializeX86TargetMC. llvm-svn: 135812
-
Bill Wendling authored
emitted, emit them next as CIE/FDEs. llvm-svn: 135807
-
Bruno Cardoso Lopes authored
load folding logic llvm-svn: 135801
-
Jim Grosbach authored
Fix parsing of carry-setting variant SMLALS and add tests. llvm-svn: 135797
-
Jim Grosbach authored
Fix encoding of destination register. Add tests. llvm-svn: 135796
-
Bruno Cardoso Lopes authored
llvm-svn: 135794
-
Rafael Espindola authored
too. Patch by Jeff Muizelaar. llvm-svn: 135789
-
Dan Gohman authored
of doing the RAUW calls for the overflow value itself. This makes it more consistent with how the rest of LegalizeDAG works. llvm-svn: 135788
-
Owen Anderson authored
llvm-svn: 135785
-