Evan Cheng [Fri, 26 Sep 2008 19:14:21 +0000 (19:14 +0000)]
Avoid spilling EBP / RBP twice in the prologue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56675
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 26 Sep 2008 18:50:46 +0000 (18:50 +0000)]
We don't need to insert copies for implicit_def's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56674
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 26 Sep 2008 17:27:58 +0000 (17:27 +0000)]
When looking for executable extensions, ignore .dSYM, as that's the debug info directory on Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56667
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 26 Sep 2008 16:58:16 +0000 (16:58 +0000)]
X86 address displacement field must be interpreted as a 32-bit value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56665
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 26 Sep 2008 04:50:04 +0000 (04:50 +0000)]
Set svn:ignore on AsmPrinter Release-Asserts directories.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56643
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Fri, 26 Sep 2008 04:40:32 +0000 (04:40 +0000)]
CMake: Builds all targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56641
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 26 Sep 2008 01:39:32 +0000 (01:39 +0000)]
Disable support for x86_f80 in X86FastISel. Supporting it would
require more work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56637
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 26 Sep 2008 00:28:12 +0000 (00:28 +0000)]
If we have a function with an unreachable statement such that the ending debug
information is in an unreachable block, then it's possible that the high/low pc
values won't be set for the dwarf information. E.g., this function:
void abort(void) __attribute__((__noreturn__));
void dead_beef(void) __attribute__ ((noreturn));
int *b;
void dead_beef(void) {
*b=0xdeadbeef;
abort();
}
has a call to "@llvm.dbg.region.end" only in the unreachable block:
define void @dead_beef() noreturn nounwind {
entry:
call void @llvm.dbg.func.start(...)
call void @llvm.dbg.stoppoint(...)
...
call void @abort( ) noreturn nounwind
unreachable
return: ; No predecessors!
call void @llvm.dbg.stoppoint(...)
call void @llvm.dbg.region.end(...)
ret void
}
The dwarf information emitted is something like:
0x00000084: TAG_subprogram [5]
AT_name( "dead_beef" )
AT_external( 0x01 )
AT_prototyped( 0x01 )
AT_decl_file( 0x01 )
AT_decl_line( 0x08 )
Note that this is *not* the best fix for this problem, but a band-aid for an
gaping wound. This code needs to be changed when we revamp our debugging
information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56628
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 25 Sep 2008 23:35:16 +0000 (23:35 +0000)]
Prefer movlhps over punpcklqdq, etc. in more cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56627
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 25 Sep 2008 23:34:02 +0000 (23:34 +0000)]
Fix a bug in which address displacements were being added to the
load from the stub, instead of the result of the load from the stub.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56626
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 25 Sep 2008 22:42:01 +0000 (22:42 +0000)]
Make pointer parameter const for isUsedInBasicBlock.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56625
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 25 Sep 2008 21:00:45 +0000 (21:00 +0000)]
Large mechanical patch.
s/ParamAttr/Attribute/g
s/PAList/AttrList/g
s/FnAttributeWithIndex/AttributeWithIndex/g
s/FnAttr/Attribute/g
This sets the stage
- to implement function notes as function attributes and
- to distinguish between function attributes and return value attributes.
This requires corresponding changes in llvm-gcc and clang.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56622
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Thu, 25 Sep 2008 21:00:33 +0000 (21:00 +0000)]
Reapply 56585:56589 with proper fix for some gcc versions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56621
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 25 Sep 2008 20:50:48 +0000 (20:50 +0000)]
With sse3 and when the source is a load or has multiple uses, favors movddup over shuffp*, pshufd, etc. Without sse3 or when the source is from a register, make use of movlhps
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56620
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Thu, 25 Sep 2008 20:47:45 +0000 (20:47 +0000)]
Accept 'inreg' attribute on x86 functions as
meaning sse_regparm (i.e. float/double values go
in XMM0 instead of ST0). Update documentation
to reflect reality.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56619
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 25 Sep 2008 17:37:20 +0000 (17:37 +0000)]
Avoid a spurious extra space character when printing empty structs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56616
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 25 Sep 2008 17:22:52 +0000 (17:22 +0000)]
Support for i1 XOR in FastISel. It is actually safe because
i1 operands are assumed to already by zero-extended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56615
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 25 Sep 2008 17:21:42 +0000 (17:21 +0000)]
Don't print fast-isel debug messages by default. Thanks Chris!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56614
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 25 Sep 2008 17:17:27 +0000 (17:17 +0000)]
Don't forget the newline in debug output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56613
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 25 Sep 2008 17:05:24 +0000 (17:05 +0000)]
FastISel support for debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56610
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Pennington [Thu, 25 Sep 2008 16:15:10 +0000 (16:15 +0000)]
bug 2812: Segmentation fault on a big emdiam processor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56609
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 25 Sep 2008 15:24:26 +0000 (15:24 +0000)]
PIC support in X86FastISel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56608
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 25 Sep 2008 07:38:08 +0000 (07:38 +0000)]
Temporarily backing out 56585:56589 to unbreak the build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56607
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 25 Sep 2008 01:28:51 +0000 (01:28 +0000)]
Fix a recent fast-isel coverage regression - don't bail out before
giving the target a chance to materialize constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56605
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 25 Sep 2008 01:14:49 +0000 (01:14 +0000)]
Enable DeadMachineInstructionElim when Fast-ISel is enabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56604
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 25 Sep 2008 01:06:50 +0000 (01:06 +0000)]
Add debug output to this pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56602
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 25 Sep 2008 00:49:51 +0000 (00:49 +0000)]
pmovsxbq etc. requires sse4.1.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56600
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 25 Sep 2008 00:37:07 +0000 (00:37 +0000)]
Refactor the code that adds standard LLVM codegen passes into
a separate function, eliminating duplication between the
add-passes-for-file and add-passes-for-machine-code code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56599
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 25 Sep 2008 00:14:04 +0000 (00:14 +0000)]
<rdar://problem/
6234798> Assertion failed: (!OpInfo.AssignedRegs.Regs.empty() && "Couldn't allocate input reg!")
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56597
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 24 Sep 2008 23:44:12 +0000 (23:44 +0000)]
Give LowerSubregs.cpp a top-level description.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56596
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 24 Sep 2008 23:27:55 +0000 (23:27 +0000)]
Fix patterns for SSE4.1 move and sign extend instructions. Also add instructions which fold VZEXT_MOVL and VZEXT_LOAD.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56594
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 24 Sep 2008 23:26:36 +0000 (23:26 +0000)]
X86ISD::VZEXT_LOAD should produce and fold a chain.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56593
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 24 Sep 2008 23:13:09 +0000 (23:13 +0000)]
Remove SelectionDag early allocation of registers
for earlyclobbers. Teach Local RA about earlyclobber,
and add some tests for it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56592
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:23:17 +0000 (22:23 +0000)]
Finally get rid of virtual inheritance in TAI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56589
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:22:54 +0000 (22:22 +0000)]
Minor cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56588
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:22:27 +0000 (22:22 +0000)]
Get rid of virtual inheritance for ARM TAI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56587
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:22:03 +0000 (22:22 +0000)]
Get rid of virtual inheritance for PPC TAI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56586
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:21:39 +0000 (22:21 +0000)]
Use crazy template-based inheritance instead of virtual one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56585
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:21:04 +0000 (22:21 +0000)]
Use helper
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56584
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:20:46 +0000 (22:20 +0000)]
SmallPtrSet will be better
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56583
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:20:27 +0000 (22:20 +0000)]
Get rid of ReadOnlySection duplicate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56582
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:19:13 +0000 (22:19 +0000)]
Use named sections, where they should be
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56581
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:18:54 +0000 (22:18 +0000)]
Get rid of now unused {Four,Eight,Sixteen}ByteConstantSection
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56580
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:17:59 +0000 (22:17 +0000)]
Use generic section-handling stuff to emit constant pool entries
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56579
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:17:27 +0000 (22:17 +0000)]
Cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56578
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:17:06 +0000 (22:17 +0000)]
Get rid of duplicate char*/Section* stuff for TLS sections
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56577
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:16:33 +0000 (22:16 +0000)]
Cleanup, no functionality change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56576
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:16:16 +0000 (22:16 +0000)]
Get rid of duplicate char*/Section* DataSection
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56575
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:15:21 +0000 (22:15 +0000)]
Get rid of duplicate char*/Section* TextSection
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56574
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:14:23 +0000 (22:14 +0000)]
Move actual section printing stuff to AsmPrinter from TAI reducing heap traffic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56573
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:13:07 +0000 (22:13 +0000)]
Drop obsolete hook and change all usage to new interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56572
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:12:10 +0000 (22:12 +0000)]
Provide direct function to switch to Section
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56571
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:11:42 +0000 (22:11 +0000)]
SPU section handling is really huge mess. Replace remaining TAI calls for sections with explicit names in order not to block existing backends during section handling migration. SPU folks! Please consider using new section handling facility someday.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56570
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:11:26 +0000 (22:11 +0000)]
Remove dead code for PIC16 (preparation to switch to new section handling stuff)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56569
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 24 Sep 2008 22:03:04 +0000 (22:03 +0000)]
XMM6-XMM15 are callee-saved on Win64. Patch by Nicolas Capens!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56568
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 24 Sep 2008 21:30:38 +0000 (21:30 +0000)]
Fix off-by-one error when updating live intervals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56567
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Wed, 24 Sep 2008 19:27:54 +0000 (19:27 +0000)]
CMake: Disabled some warnings for MSVC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56565
91177308-0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Wed, 24 Sep 2008 17:23:28 +0000 (17:23 +0000)]
Add Attributes.cpp to the vcproj.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56561
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 24 Sep 2008 16:25:55 +0000 (16:25 +0000)]
Add DisableGVCompilation which forces the JIT to assert when it tries to allocate space for a GlobalVariable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56557
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 24 Sep 2008 10:25:02 +0000 (10:25 +0000)]
Reapplying r56550
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56553
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 24 Sep 2008 10:16:24 +0000 (10:16 +0000)]
Forgot this part with my last patch. Sorry about the breakage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56552
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 24 Sep 2008 08:30:44 +0000 (08:30 +0000)]
Temporarily revert r56550 until missing commit can be added.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56551
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 24 Sep 2008 07:11:26 +0000 (07:11 +0000)]
Refactor the constant folding code into it's own function. And call it from both
the SelectionDAG and DAGCombiner code. The only functionality change is that now
the DAG combiner is performing the constant folding for these operations instead
of being a no-op.
This is *not* in response to a bug, so there isn't a testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56550
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 24 Sep 2008 06:48:55 +0000 (06:48 +0000)]
Commit CodeGenPrepare.cpp changes which was accidentially left out of 56526.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56549
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 24 Sep 2008 05:32:41 +0000 (05:32 +0000)]
Fix fallout in CodeGenPrepare from 56526. Will likely need more work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56546
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 24 Sep 2008 04:55:49 +0000 (04:55 +0000)]
Fix fallout from revision r56535.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56545
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Wed, 24 Sep 2008 01:58:12 +0000 (01:58 +0000)]
CMake: Lists of source files updated. Removed bogus dependency from
lib/VMCore/CMakeLists.txt
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56541
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Wed, 24 Sep 2008 01:54:03 +0000 (01:54 +0000)]
CMake: Removed unnecessary messages from msvc_llvm_config macro.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56540
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 24 Sep 2008 01:07:17 +0000 (01:07 +0000)]
Next round of earlyclobber handling. Approach the
RA problem by expanding the live interval of an
earlyclobber def back one slot. Remove
overlap-earlyclobber throughout. Remove
earlyclobber bits and their handling from
live internals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56539
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 24 Sep 2008 00:55:02 +0000 (00:55 +0000)]
s/ParamAttrsWithIndex/FnAttributeWithIndex/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56535
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 24 Sep 2008 00:50:16 +0000 (00:50 +0000)]
Test fp not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56534
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 24 Sep 2008 00:29:49 +0000 (00:29 +0000)]
s/ParamAttributeListImpl/AttributeListImpl/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56532
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 24 Sep 2008 00:27:38 +0000 (00:27 +0000)]
Refactor the logic for testing if an instruction is dead into a
separate method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56531
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 24 Sep 2008 00:07:08 +0000 (00:07 +0000)]
Set SetStore to false, to allow this pass to delete
dead loads.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56529
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 24 Sep 2008 00:06:15 +0000 (00:06 +0000)]
Add a method to MachineInstr for testing whether it makes
any volatile memory references.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56528
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 24 Sep 2008 00:06:15 +0000 (00:06 +0000)]
Put FN_NOTE_AlwaysInline and others in FnAttr namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56527
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 24 Sep 2008 00:05:32 +0000 (00:05 +0000)]
Properly handle 'm' inline asm constraints. If a GV is being selected for the addressing mode, it requires the same logic for PIC relative addressing, etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56526
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 23 Sep 2008 23:52:03 +0000 (23:52 +0000)]
Move FN_NOTE_AlwaysInline and other out of ParamAttrs namespace.
Do not check isDeclaration() in hasNote(). It is clients' responsibility.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56524
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 23 Sep 2008 23:32:15 +0000 (23:32 +0000)]
80 cols
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56521
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 23 Sep 2008 23:25:44 +0000 (23:25 +0000)]
s/ParameterAttributes/Attributes/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56520
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 23 Sep 2008 23:18:26 +0000 (23:18 +0000)]
Remove tabs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56515
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 23 Sep 2008 23:03:40 +0000 (23:03 +0000)]
s/ParameterAttributes/Attributes/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56513
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 23 Sep 2008 22:35:17 +0000 (22:35 +0000)]
Use parameter attribute store (soon to be renamed) for
Function Notes also. Function notes are stored at index ~0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56511
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 23 Sep 2008 22:04:18 +0000 (22:04 +0000)]
Now that DeadMachineInstructionElim is basically working
correctly, it's not necessary to explicitly remove registers
from their use-def lists.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56509
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 23 Sep 2008 21:53:34 +0000 (21:53 +0000)]
Arrange for FastISel code to have access to the MachineModuleInfo
object. This will be needed to support debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56508
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 23 Sep 2008 21:40:44 +0000 (21:40 +0000)]
Track local physical register liveness. This is not the most
efficient implementation possible, but it's pretty simple and
good enough for the time being.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56504
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 23 Sep 2008 21:18:31 +0000 (21:18 +0000)]
regenerate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56502
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 23 Sep 2008 21:18:08 +0000 (21:18 +0000)]
allow inreg on the result of a function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56501
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 23 Sep 2008 18:50:48 +0000 (18:50 +0000)]
Replace the LiveRegs SmallSet with a simple counter that keeps
track of the number of live registers, which is all the set was
being used for.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56498
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 23 Sep 2008 18:42:32 +0000 (18:42 +0000)]
Fix these enums' starting values to reflect the way that
instruction opcodes are now numbered. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56497
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 23 Sep 2008 18:27:53 +0000 (18:27 +0000)]
Update the comment to reflect the new name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56496
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 23 Sep 2008 18:26:47 +0000 (18:26 +0000)]
Delete an unused function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56495
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 23 Sep 2008 18:22:58 +0000 (18:22 +0000)]
Move the code for initializing the global base reg out of
X86ISelDAGToDAG.cpp and into X86InstrInfo.cpp. This will allow
it to be reused by FastISel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56494
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 23 Sep 2008 12:47:39 +0000 (12:47 +0000)]
Rationalize the names of passes that print information:
-callgraph => print-callgraph
-callscc => print-callgraph-sccs
-cfgscc => print-cfg-sccs
-externalfnconstants => print-externalfnconstants
-print => print-function
-print-alias-sets (no change)
-print-callgraph => dot-callgraph
-print-cfg => dot-cfg
-print-cfg-only => dot-cfg-only
-print-dom-info (no change)
-printm => print-module
-printusedtypes => print-used-types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56487
91177308-0d34-0410-b5e6-
96231b3b80d8
Matthijs Kooijman [Tue, 23 Sep 2008 08:54:41 +0000 (08:54 +0000)]
Fix indendation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56486
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 23 Sep 2008 04:37:10 +0000 (04:37 +0000)]
Add initial support for inserting last minute copies.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56485
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 22 Sep 2008 23:57:37 +0000 (23:57 +0000)]
Support x86 specific inline asm modifier 'J'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56483
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 22 Sep 2008 23:28:18 +0000 (23:28 +0000)]
Remove silly semicolon.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56481
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 22 Sep 2008 22:40:08 +0000 (22:40 +0000)]
Fix the alignment of loads from constant pool entries when the
load address has an offset from the base of the constant pool
entry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56479
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 22 Sep 2008 22:33:34 +0000 (22:33 +0000)]
Remove a compiler warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56478
91177308-0d34-0410-b5e6-
96231b3b80d8