Evan Cheng [Sun, 8 Feb 2009 08:00:36 +0000 (08:00 +0000)]
r64073 commit message is lost. Here it is:
Right now if the coalesced copy def is dead and its src is a kill, and that
there are now other uses within the live range, the coalescer would mark the
def of the source register as dead. But it should also check if there are
other kills which means the value has other uses not in the live range.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64075
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sun, 8 Feb 2009 07:48:37 +0000 (07:48 +0000)]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64073
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sun, 8 Feb 2009 04:04:40 +0000 (04:04 +0000)]
Fixes from feedback.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64070
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sun, 8 Feb 2009 01:40:31 +0000 (01:40 +0000)]
Document the 'llvm.OP.with.overflow' intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64066
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sun, 8 Feb 2009 01:32:00 +0000 (01:32 +0000)]
Mistakenly turned this on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64065
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sun, 8 Feb 2009 00:58:05 +0000 (00:58 +0000)]
Revert r63999. It was breaking self-hosting builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64062
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 7 Feb 2009 23:37:03 +0000 (23:37 +0000)]
testcase for r64049 of llvm-gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64050
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 7 Feb 2009 22:37:06 +0000 (22:37 +0000)]
Add missing break statements, fixing PR3503.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64040
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Sat, 7 Feb 2009 22:19:29 +0000 (22:19 +0000)]
Instrcombine should not change load(cast p) to cast(load p) if the cast
changes the address space of the pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64035
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Sat, 7 Feb 2009 19:59:05 +0000 (19:59 +0000)]
Use getDebugLoc forwarder instead of getNode()->getDebugLoc.
No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64026
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 7 Feb 2009 19:38:46 +0000 (19:38 +0000)]
Revert 64023. make prefers GNUmakefile over makefile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64024
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 7 Feb 2009 19:05:24 +0000 (19:05 +0000)]
Move Apple style build makefiles to the top level. Just like llvmgcc42.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64023
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 7 Feb 2009 18:56:30 +0000 (18:56 +0000)]
fix bugpoint url, patch by Pieter de Bie!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64022
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sat, 7 Feb 2009 16:15:20 +0000 (16:15 +0000)]
Constify TargetInstrInfo::EmitInstrWithCustomInserter, allowing
ScheduleDAG's TLI member to use const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64018
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sat, 7 Feb 2009 16:12:23 +0000 (16:12 +0000)]
Change several SmallPtrSetImpl members from public to protected,
to make the encapsulation more clear.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64017
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sat, 7 Feb 2009 16:10:35 +0000 (16:10 +0000)]
Simplify some code by using blocks_begin(), blocks_end(), and
the iterator typedefs instead of handling the std::vector
directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64016
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sat, 7 Feb 2009 04:57:08 +0000 (04:57 +0000)]
Add an API for strings with possible NULLs in the middle. Refactor the other
two AddString methods to use it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64005
91177308-0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Sat, 7 Feb 2009 03:36:02 +0000 (03:36 +0000)]
Insert space to avoid warning and make code more readable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64003
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sat, 7 Feb 2009 03:15:01 +0000 (03:15 +0000)]
Free the buffer in the case where we don't create a module out of it, as
pointed out by Torok Edwin.
Remove trailing whitespaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64002
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Sat, 7 Feb 2009 02:15:05 +0000 (02:15 +0000)]
Make SDNode constructors take a DebugLoc always.
Adjust derived classes to pass UnknownLoc where
a DebugLoc does not make sense. Pick one of
DebugLoc and non-DebugLoc variants to survive
for all such classes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64000
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 7 Feb 2009 01:57:46 +0000 (01:57 +0000)]
Enable machine sinking pass in non-fast mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63999
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Sat, 7 Feb 2009 01:34:19 +0000 (01:34 +0000)]
Deleted one line too many. oops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63996
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Sat, 7 Feb 2009 01:27:09 +0000 (01:27 +0000)]
Remove now-unused constructors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63995
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 7 Feb 2009 01:21:47 +0000 (01:21 +0000)]
Don't sink the instruction if TargetRegisterInfo::isSafeToMoveRegClassDefs doesn't think it's safe. This works around PR1911.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63994
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Sat, 7 Feb 2009 00:56:46 +0000 (00:56 +0000)]
Needs this file too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63993
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Sat, 7 Feb 2009 00:55:49 +0000 (00:55 +0000)]
Get rid of the last non-DebugLoc versions of getNode!
Many targets build placeholder nodes for special operands, e.g.
GlobalBaseReg on X86 and PPC for the PIC base. There's no
sensible way to associate debug info with these. I've left
them built with getNode calls with explicit DebugLoc::getUnknownLoc operands.
I'm not too happy about this but don't see a good improvement;
I considered adding a getPseudoOperand or something, but it
seems to me that'll just make it harder to read.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63992
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sat, 7 Feb 2009 00:43:41 +0000 (00:43 +0000)]
Refactor some repeated logic into a separate function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63989
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sat, 7 Feb 2009 00:42:54 +0000 (00:42 +0000)]
Make a comment a doxygen comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63988
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 6 Feb 2009 23:17:54 +0000 (23:17 +0000)]
Constify operators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63979
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Fri, 6 Feb 2009 23:05:02 +0000 (23:05 +0000)]
Remove more non-DebugLoc getNode variants. Use
getCALLSEQ_{END,START} to permit passing no DebugLoc
there. UNDEF doesn't logically have DebugLoc; add
getUNDEF to encapsulate this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63978
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Fri, 6 Feb 2009 21:55:48 +0000 (21:55 +0000)]
And one more file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63971
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Fri, 6 Feb 2009 21:50:26 +0000 (21:50 +0000)]
Remove more non-DebugLoc versions of getNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63969
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 6 Feb 2009 21:45:08 +0000 (21:45 +0000)]
Record debug location information in the Dwarf writer.
A simple test program shows that debugging works. :-)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63968
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 6 Feb 2009 21:36:23 +0000 (21:36 +0000)]
Clear out the CurDebugLoc info when doing a 'clear' on the SDL object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63967
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 6 Feb 2009 21:34:12 +0000 (21:34 +0000)]
Add comparison operators to DebugLoc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63966
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 6 Feb 2009 21:25:08 +0000 (21:25 +0000)]
Split the locking out of JIT::runJITOnFunction so that callers
that already hold the lock can call an entry point that doesn't
re-acquire the lock.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63965
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 6 Feb 2009 21:17:03 +0000 (21:17 +0000)]
Make Mutex's constructor explicit, and tidy up whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63963
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 6 Feb 2009 21:15:52 +0000 (21:15 +0000)]
Use .size and .type on ELF systems; this helps tools that map
addresses to symbols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63962
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 6 Feb 2009 19:34:14 +0000 (19:34 +0000)]
Deallocate() methods now take a 'const void*' instead of a 'void *', matching observed behavior with how 'delete[]' can be used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63956
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Fri, 6 Feb 2009 19:16:40 +0000 (19:16 +0000)]
Eliminate remaining non-DebugLoc version of getTargetNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63951
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 6 Feb 2009 18:26:51 +0000 (18:26 +0000)]
Rename SelectionDAGISel::Schedule to
SelectionDAGISel::CreateScheduler, and make it just create the
scheduler. Leave running the scheduler to the higher-level code.
This makes the higher-level code a little more explicit and
easier to follow, and will help enable some future refactoring.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63944
91177308-0d34-0410-b5e6-
96231b3b80d8
Sanjiv Gupta [Fri, 6 Feb 2009 18:24:59 +0000 (18:24 +0000)]
Print globl directive for variables with external linkage (global variables).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63943
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 6 Feb 2009 18:19:52 +0000 (18:19 +0000)]
Delete an unused member function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63941
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 6 Feb 2009 17:51:34 +0000 (17:51 +0000)]
We don't really need the abort here. This unbreak x86_64 linux build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63940
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 6 Feb 2009 17:43:24 +0000 (17:43 +0000)]
Move getPointerRegClass from TargetInstrInfo to TargetRegisterInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63938
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 6 Feb 2009 17:22:58 +0000 (17:22 +0000)]
Move ScheduleDAGSDNodes.h to be a private header. Front-ends
that previously included this header should include
SchedulerRegistry.h instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63937
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 6 Feb 2009 17:17:30 +0000 (17:17 +0000)]
Add TargetInstrInfo::isSafeToMoveRegisterClassDefs. It returns true if it's safe to move an instruction which defines a value in the register class. Replace pre-splitting specific IgnoreRegisterClassBarriers with this new hook.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63936
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 6 Feb 2009 17:12:56 +0000 (17:12 +0000)]
Change -1 => negative number.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63935
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 6 Feb 2009 17:12:10 +0000 (17:12 +0000)]
Move ScheduleDAGInstrs.h to be a private header. Front-ends
that used this header to select a scheduling policy should
use SchedulerRegistry.h instead (llvm-gcc and clang were
updated a while ago).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63934
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 6 Feb 2009 17:01:33 +0000 (17:01 +0000)]
Document the meaning of -1 for getCopyCost.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63933
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 6 Feb 2009 16:50:02 +0000 (16:50 +0000)]
Tidy up the ScheduleDAG class definition a little. Make a few
more member functions protected, and group all the protected
members together.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63932
91177308-0d34-0410-b5e6-
96231b3b80d8
Roman Levenstein [Fri, 6 Feb 2009 09:16:15 +0000 (09:16 +0000)]
Don't pass BitVectors by value, pass them by reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63931
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Fri, 6 Feb 2009 07:01:00 +0000 (07:01 +0000)]
Correct strange whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63927
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Fri, 6 Feb 2009 06:19:06 +0000 (06:19 +0000)]
Ignore DbgInfoIntrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63923
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 6 Feb 2009 04:34:07 +0000 (04:34 +0000)]
fix PR3489, use bits instead of bytes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63916
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Fri, 6 Feb 2009 02:08:06 +0000 (02:08 +0000)]
get rid of some non-DebugLoc getTargetNode variants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63909
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Fri, 6 Feb 2009 01:58:34 +0000 (01:58 +0000)]
Free the buffer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63907
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 6 Feb 2009 01:49:19 +0000 (01:49 +0000)]
Fix test. It produces unexpected code if sse4.1 is on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63906
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Fri, 6 Feb 2009 01:31:28 +0000 (01:31 +0000)]
Get rid of one more non-DebugLoc getNode and
its corresponding getTargetNode. Lots of
caller changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63904
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 6 Feb 2009 00:13:43 +0000 (00:13 +0000)]
Fix a crasher: we need to check that the function is non-null before using it!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63902
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 5 Feb 2009 23:36:27 +0000 (23:36 +0000)]
Refactor my previous change to maintain the distinction between AliasAnalysis and BasicAliasAnalysis. This involves some wider changes because it
folds away some never-used methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63900
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 5 Feb 2009 23:32:52 +0000 (23:32 +0000)]
Ignore dbg intrinsics while propagating conditional expression info. Take 2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63898
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 5 Feb 2009 22:24:17 +0000 (22:24 +0000)]
isAsCheapAsMove instructions can have register src operands. Check if they are really re-materializable.
This fixes sse.expandfft and sse.stepfft.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63890
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Thu, 5 Feb 2009 22:07:54 +0000 (22:07 +0000)]
Remove a non-DebugLoc version of getNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63889
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 5 Feb 2009 21:46:41 +0000 (21:46 +0000)]
Revert rev. 63876. It is causing llvm-gcc bootstrap failure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63888
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 5 Feb 2009 21:34:56 +0000 (21:34 +0000)]
Delete some trailing whiespaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63887
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Thu, 5 Feb 2009 21:20:44 +0000 (21:20 +0000)]
Remove 3 non-DebugLoc variants of getNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63886
91177308-0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Thu, 5 Feb 2009 20:49:49 +0000 (20:49 +0000)]
FIx spelling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63883
91177308-0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Thu, 5 Feb 2009 20:45:27 +0000 (20:45 +0000)]
Probe for flags before using them to try to help compiling with
compilers that don't support those flags. This hopefully will help
gcc 3.X compile this code. http://llvm.org/PR3487
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63882
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 5 Feb 2009 19:59:42 +0000 (19:59 +0000)]
Remove dead blocks in the end.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63880
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 5 Feb 2009 19:15:39 +0000 (19:15 +0000)]
Ignore dbg intrinsics while propagating conditional expression info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63876
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 5 Feb 2009 18:15:17 +0000 (18:15 +0000)]
testcase for rdar://
6551276 and llvm-gcc r63873
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63874
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 5 Feb 2009 17:58:39 +0000 (17:58 +0000)]
fix PR3488: llvm-ar r doesn't replace existing files
Patch by Daniel Shelton!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63870
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 5 Feb 2009 10:21:34 +0000 (10:21 +0000)]
Revert the previous commit. It seems it didn't
really solve the problem. Also it changed the
name from libLLVMgold to LLVMgold (correcting
the name resulted in the original problem
suddenly reappearing).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63861
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 5 Feb 2009 09:54:02 +0000 (09:54 +0000)]
Stop llvm-config thinking that there are circular
dependencies between libraries due to __dso_handle
when doing "make install". I don't know what the
LINK_COMPONENTS stuff is about, so I left it alone.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63860
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 5 Feb 2009 08:51:13 +0000 (08:51 +0000)]
Machine LICM increases register pressure and it almost always increase code size. For now, disable it for optimizing for size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63856
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 5 Feb 2009 08:46:33 +0000 (08:46 +0000)]
Turn on machine LICM in non-fast mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63855
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 5 Feb 2009 08:45:46 +0000 (08:45 +0000)]
Teach machine licm to CSE hoisted instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63854
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 5 Feb 2009 08:45:04 +0000 (08:45 +0000)]
ReMaterializeTrivialDef need to trim the live interval to the last kill if the copy kills the source register. This fixes uint64tof64.ll after ARM::MOVi is marked as isAsCheapAsAMove.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63853
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 5 Feb 2009 08:42:55 +0000 (08:42 +0000)]
A few more isAsCheapAsAMove.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63852
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 5 Feb 2009 08:41:53 +0000 (08:41 +0000)]
Clarify comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63851
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 5 Feb 2009 06:55:21 +0000 (06:55 +0000)]
if we have a large GEP offset on a 32-bit or other target, make
sure to print the value properly sext'd to the right pointer size.
This fixes PR3481.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63843
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 5 Feb 2009 05:58:41 +0000 (05:58 +0000)]
Pre-alloc splitting needs to be more careful to avoid inserting spills/restores
between call frame setup/restore points. Unfortunately, this regresses
code size a bit, but at least it's correct now!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63837
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 5 Feb 2009 05:42:28 +0000 (05:42 +0000)]
PR3485, document alignment on byref.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63836
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 5 Feb 2009 05:36:01 +0000 (05:36 +0000)]
It's not obvious, but lto_module_create_from_memory doesn't need to use the
buffer after it creates the Module. Thus, we don't need to store this pointer
in claimed_file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63834
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Thu, 5 Feb 2009 04:47:42 +0000 (04:47 +0000)]
Fix a bug where we were not emitting a cvt rnd sat node for converting
between a unsigned integer and signed integer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63831
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 5 Feb 2009 04:14:23 +0000 (04:14 +0000)]
Remove accidentally included debug message!
Reword a comment for clarity. Remove some extra whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63823
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Thu, 5 Feb 2009 01:49:45 +0000 (01:49 +0000)]
Reapply 63765. Patches for clang and llvm-gcc to follow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63812
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Thu, 5 Feb 2009 01:01:16 +0000 (01:01 +0000)]
Get rid of 3 non-DebugLoc getNode variants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63808
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 5 Feb 2009 00:30:42 +0000 (00:30 +0000)]
Ignore dbg intrinsics while folding switch instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63802
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Thu, 5 Feb 2009 00:20:09 +0000 (00:20 +0000)]
Remove non-DebugLoc versions of getMergeValues, ZeroExtendInReg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63800
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 4 Feb 2009 23:02:30 +0000 (23:02 +0000)]
Remove non-DebugLoc forms of CopyToReg and CopyFromReg.
Adjust callers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63789
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 4 Feb 2009 22:47:25 +0000 (22:47 +0000)]
Reverting 63765. This broke the build of both clang
and llvm-gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63786
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 4 Feb 2009 21:39:48 +0000 (21:39 +0000)]
Ignore dbg intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63781
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Wed, 4 Feb 2009 21:10:56 +0000 (21:10 +0000)]
Add test case for r63760.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63774
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Wed, 4 Feb 2009 21:07:37 +0000 (21:07 +0000)]
Remove now-incorrect test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63772
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Wed, 4 Feb 2009 21:00:02 +0000 (21:00 +0000)]
Alphabetize includes. Update comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63771
91177308-0d34-0410-b5e6-
96231b3b80d8
Stuart Hastings [Wed, 4 Feb 2009 20:30:10 +0000 (20:30 +0000)]
80 column rule.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63768
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 4 Feb 2009 20:06:27 +0000 (20:06 +0000)]
Remove non-DebugLoc versions of getLoad and getStore.
Adjust the many callers of those versions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63767
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Wed, 4 Feb 2009 19:47:21 +0000 (19:47 +0000)]
New feature: add support for target intrinsics being defined in the
target directories themselves. This also means that VMCore no longer
needs to know about every target's list of intrinsics. Future work
will include converting the PowerPC target to this interface as an
example implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63765
91177308-0d34-0410-b5e6-
96231b3b80d8