llvm-6502/lib
Dan Gohman 97121ba2af Implement support for using modeling implicit-zero-extension on x86-64
with SUBREG_TO_REG, teach SimpleRegisterCoalescing to coalesce
SUBREG_TO_REG instructions (which are similar to INSERT_SUBREG
instructions), and teach the DAGCombiner to take advantage of this on
targets which support it. This eliminates many redundant
zero-extension operations on x86-64.

This adds a new TargetLowering hook, isZExtFree. It's similar to
isTruncateFree, except it only applies to actual definitions, and not
no-op truncates which may not zero the high bits.

Also, this adds a new optimization to SimplifyDemandedBits: transform
operations like x+y into (zext (add (trunc x), (trunc y))) on targets
where all the casts are no-ops. In contexts where the high part of the
add is explicitly masked off, this allows the mask operation to be
eliminated. Fix the DAGCombiner to avoid undoing these transformations
to eliminate casts on targets where the casts are no-ops.

Also, this adds a new two-address lowering heuristic. Since
two-address lowering runs before coalescing, it helps to be able to
look through copies when deciding whether commuting and/or
three-address conversion are profitable.

Also, fix a bug in LiveInterval::MergeInClobberRanges. It didn't handle
the case that a clobber range extended both before and beyond an
existing live range. In that case, multiple live ranges need to be
added. This was exposed by the new subreg coalescing code.

Remove 2008-05-06-SpillerBug.ll. It was bugpoint-reduced, and the
spiller behavior it was looking for no longer occurrs with the new
instruction selection.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68576 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-08 00:15:30 +00:00
..
Analysis use higher level APIs. 2009-04-03 00:02:39 +00:00
Archive
AsmParser Add support for embedded metadata to LLVM. This introduces two new types of 2009-04-04 07:22:01 +00:00
Bitcode Teach llvm-bcanalyzer to skip over the header we use on LLVM IR files. 2009-04-06 20:54:32 +00:00
CodeGen Implement support for using modeling implicit-zero-extension on x86-64 2009-04-08 00:15:30 +00:00
CompilerDriver -write-graph now can be used with -o. 2009-03-27 12:57:14 +00:00
Debugger Oops...I committed too much. 2009-03-13 04:39:26 +00:00
ExecutionEngine Use CHAR_BIT instead of hard-coding 8 in several places where it 2009-04-01 18:45:54 +00:00
Linker Apply ODR linkage changes accidentally dropped during 2009-03-08 13:35:23 +00:00
Support Fix build on Linux. 2009-04-02 01:11:37 +00:00
System hopefully fix an apparent build error on windows. 2009-04-01 02:03:38 +00:00
Target Implement support for using modeling implicit-zero-extension on x86-64 2009-04-08 00:15:30 +00:00
Transforms fix rdar://6762290, a crash compiling cxx filt with clang. 2009-04-07 05:03:34 +00:00
VMCore fix style. 2009-04-07 19:45:59 +00:00
Makefile Reorganize llvmc code. 2009-03-02 09:01:14 +00:00