Owen Anderson [Sat, 20 Jun 2009 00:26:26 +0000 (00:26 +0000)]
Forgot this file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73802
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Sat, 20 Jun 2009 00:24:58 +0000 (00:24 +0000)]
Revert r73790, and replace it with a significantly less ugly solution. Rather than trying to make the global reader-writer lock work,
create separate recursive mutexes for each value map. The recursive-ness fixes the double-acquiring issue, which having one per ValueMap
lets us continue to maintain some concurrency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73801
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 19 Jun 2009 23:59:57 +0000 (23:59 +0000)]
stub out some hacky code for wiring up the new asmprinter interfaces
on X86. Not useful yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73799
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 19 Jun 2009 23:57:53 +0000 (23:57 +0000)]
allow clients of the asmprinter to opt-out of the boilerplate with a #define.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73798
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 19 Jun 2009 23:41:37 +0000 (23:41 +0000)]
Fix a typo in a comment that Frits von Bommel noticed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73796
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 19 Jun 2009 23:29:04 +0000 (23:29 +0000)]
Make GetMinTrailingZeros a member function of ScalarEvolution,
so that it can access the TargetData member (when available) and
use ValueTracking.h information to compute information for
SCEVUnknown Values.
Also add GetMinLeadingZeros and GetMinSignBits functions,
with minimal implementations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73794
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 19 Jun 2009 23:23:27 +0000 (23:23 +0000)]
Re-apply r73718, now that the fix in r73787 is in, and add a
hand-crafted testcase which demonstrates the bug that was exposed
in 254.gap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73793
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Fri, 19 Jun 2009 23:21:20 +0000 (23:21 +0000)]
DwarfWriter is used to emit EH info also.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73792
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 19 Jun 2009 23:17:27 +0000 (23:17 +0000)]
Enable arm pre-allocation load / store multiple optimization pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73791
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 19 Jun 2009 23:16:19 +0000 (23:16 +0000)]
Fix a serious bug that would cause deadlock during abstract type refinement. The constant creation
gets involved, and we end up trying to recursively acquire a writer lock. The fix for this is slightly horrible,
and involves passing a boolean "locked" parameter around in Constants.cpp, but it's better than having locked and
unlocked versions of most of the code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73790
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 19 Jun 2009 23:03:46 +0000 (23:03 +0000)]
Fix LSR's OptimizeSMax to ignore max operators with more than 2 operands,
which it isn't prepared to handle.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73787
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Fri, 19 Jun 2009 22:08:58 +0000 (22:08 +0000)]
mv CodeGen/DebugLoc.h Support/DebugLoc.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73786
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Fri, 19 Jun 2009 21:54:26 +0000 (21:54 +0000)]
Move up dwarf writer initialization in common AsmPrinter class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73784
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 19 Jun 2009 21:15:06 +0000 (21:15 +0000)]
Revert 73718. It's breaking 254.gap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73783
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Fri, 19 Jun 2009 19:36:55 +0000 (19:36 +0000)]
Unbreak cyclic deps
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73781
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 19 Jun 2009 18:37:50 +0000 (18:37 +0000)]
Fix bad paste-o in the MSVC atomics.
Patch by Ð
\98ван СоÑ
\80окин.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73779
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 19 Jun 2009 18:34:09 +0000 (18:34 +0000)]
Forgot to remove some explicit locking when it became implicit in the ValueMap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73778
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 19 Jun 2009 17:50:11 +0000 (17:50 +0000)]
Fences are expensive. Avoid doing them when we're not in multithreaded mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73777
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 19 Jun 2009 17:49:54 +0000 (17:49 +0000)]
Make ScalarEvolution::print print getSCEVAtScope values for
expressions, when interesting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73776
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 19 Jun 2009 17:45:12 +0000 (17:45 +0000)]
Move the memory fences out of the path for single-threaded mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73775
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 19 Jun 2009 17:33:15 +0000 (17:33 +0000)]
Don't (unconditionally) use getSCEVAtScope to simplify the step
expression in IVUsers, because in the case of a use of a non-linear
addrec outside of a loop, this causes the addrec to be evaluated as
a linear addrec.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73774
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 19 Jun 2009 17:20:50 +0000 (17:20 +0000)]
Fix incorrect comment pointed out by Duncan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73773
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Fri, 19 Jun 2009 17:19:38 +0000 (17:19 +0000)]
Clean up nightly tester to use Perl's File::Find.
Patch by Benjamin Kramer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73772
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 19 Jun 2009 17:08:20 +0000 (17:08 +0000)]
Fix a major typo.
Nicolas, this is probably the cause of the failures you were seeing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73770
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 19 Jun 2009 16:27:56 +0000 (16:27 +0000)]
make jump threading handle lexically identical compare instructions
as if they were multiple uses of the same instruction. This interacts
well with the existing loadpre that j-t does to open up many new jump
threads earlier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73768
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 19 Jun 2009 15:48:10 +0000 (15:48 +0000)]
fix the sparc codegen to not depend on the sparc asmprinter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73767
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Fri, 19 Jun 2009 14:40:01 +0000 (14:40 +0000)]
Add support for AuroraUX. Patch by evocallaghan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73766
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Fri, 19 Jun 2009 12:40:30 +0000 (12:40 +0000)]
Since -Wno-long-long is ignored without -pedantic,
place it with -pedantic. Remove -Wunused since it
is implied by -Wall. Group -Wno-unused-parameter
with -Wall -W since it is the combination of these
two that turns on -Wunused-parameter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73765
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 19 Jun 2009 07:06:07 +0000 (07:06 +0000)]
Add comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73761
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Fri, 19 Jun 2009 07:00:55 +0000 (07:00 +0000)]
Fix for PR2484: add an SSE1 pattern for a shuffle we normally prefer to
handle with an SSE2 instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73760
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 19 Jun 2009 06:56:26 +0000 (06:56 +0000)]
Should be using Bcc (average) latency to determine if-conversion threshold, not BL.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73759
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Fri, 19 Jun 2009 06:01:55 +0000 (06:01 +0000)]
Minor cleanup; fixes review comments for a previous patch. Sorry for
taking so long to get to this!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73757
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Fri, 19 Jun 2009 04:56:29 +0000 (04:56 +0000)]
Teach jump threading to look at comparisons between phi nodes and non-constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73755
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Fri, 19 Jun 2009 04:48:38 +0000 (04:48 +0000)]
Misc tweaks to Intel asm printing to make it more compatible with MASM.
Patch by Benedict Gaster.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73753
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 19 Jun 2009 04:22:16 +0000 (04:22 +0000)]
Improve tail call elim to move loads above readonly calls
when it allows forming a tail call. Patch by Frits van
Bommel. This implements PR4323.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73752
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 19 Jun 2009 04:17:36 +0000 (04:17 +0000)]
part of PR4405: disable a contentious optimization for
strcmp -> memcmp when the lengths of the strings are unknown.
Patch by Nick Lewycky!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73751
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Fri, 19 Jun 2009 02:17:53 +0000 (02:17 +0000)]
More VNInfo tweaking, plus a little progress on intra-block splitting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73750
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 19 Jun 2009 01:59:04 +0000 (01:59 +0000)]
Transfer dead markers when a ldrd is changed into a ldm or a pair of ldr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73749
91177308-0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Fri, 19 Jun 2009 01:56:53 +0000 (01:56 +0000)]
Include DataTypes.h for 'uint64_t'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73748
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 19 Jun 2009 01:51:50 +0000 (01:51 +0000)]
Latency information for ARM v6. It's rough and not yet hooked up. Right now we are only using branch latency to determine if-conversion limits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73747
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Fri, 19 Jun 2009 01:43:08 +0000 (01:43 +0000)]
Mark a few Thumb instructions commutable; just happened to spot this
while experimenting. I'm reasonably sure this is correct, but please
tell me if these instructions have some strange property which makes this
change unsafe.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73746
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 19 Jun 2009 00:48:22 +0000 (00:48 +0000)]
Fix weird class-size-being-different problems. At some level this is being caused by config.h not being
included everywhere.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73745
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 19 Jun 2009 00:47:59 +0000 (00:47 +0000)]
add a file I missed, this goes with r73743
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73744
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 19 Jun 2009 00:47:33 +0000 (00:47 +0000)]
Add some scaffolding for a new experimental asmprinter
implementation. The idea is that we want asmprinting to
work by converting MachineInstrs into a new MCInst class,
then the per-instruction asmprinter works on MCInst. MCInst
and the new asmprinters will not depend on most of the
llvm code generators. This allows building diassemblers
that don't link in the whole llvm code generator. This is
step #1 of many.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73743
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 19 Jun 2009 00:08:39 +0000 (00:08 +0000)]
merge the common darwin settings from the X86/PPC/ARM targets
into DarwinTargetAsmInfo.cpp. The remaining differences should
be evaluated. It seems strange that x86/arm has .zerofill but ppc
doesn't, etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73742
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Jun 2009 23:46:04 +0000 (23:46 +0000)]
fix build problem pointed out by John Thompson!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73739
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Jun 2009 23:41:35 +0000 (23:41 +0000)]
move mangler quote handling from asm printers to TargetAsmInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73738
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Jun 2009 23:33:13 +0000 (23:33 +0000)]
minor cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73737
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Jun 2009 23:31:37 +0000 (23:31 +0000)]
simplify macro debug info directive handling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73736
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 18 Jun 2009 23:14:30 +0000 (23:14 +0000)]
Remove UseThumbBacktraces. Just check if subtarget is darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73734
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Jun 2009 23:05:21 +0000 (23:05 +0000)]
fix file header
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73733
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Jun 2009 23:04:45 +0000 (23:04 +0000)]
Add a skeleton driver for new machine code level fun. llvm-mc is meant
to be a test driver of other components in the system, which will develop
over time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73732
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Jun 2009 22:53:26 +0000 (22:53 +0000)]
new testcase for rdar://
6983634
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73729
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 18 Jun 2009 22:25:12 +0000 (22:25 +0000)]
Add a parent pointer to SCEV, in preparation for getting rid of the global uniquing tables. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73728
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Thu, 18 Jun 2009 22:01:47 +0000 (22:01 +0000)]
Improved PHI def marking, replaced some gotos with breaks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73727
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 18 Jun 2009 21:39:50 +0000 (21:39 +0000)]
Allow user to specify separate SVN url for llvm and the test suite.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73726
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 18 Jun 2009 21:35:56 +0000 (21:35 +0000)]
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73725
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 18 Jun 2009 20:56:48 +0000 (20:56 +0000)]
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73723
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 18 Jun 2009 20:51:00 +0000 (20:51 +0000)]
Add a SmartScopedLock, and use it to simplify code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73722
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 18 Jun 2009 20:44:31 +0000 (20:44 +0000)]
Simplify with SmartRWMutex.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73721
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 18 Jun 2009 20:37:15 +0000 (20:37 +0000)]
On Darwin, ams printer should output a second label before a jump table so the linker knows it's a new atom. But this is only needed if the jump table is put in a separate section from the function body.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73720
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 18 Jun 2009 20:36:21 +0000 (20:36 +0000)]
Simplify by using no-op-when-not-multithreaded locks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73719
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 18 Jun 2009 20:23:18 +0000 (20:23 +0000)]
Generalize LSR's OptimizeSMax to handle unsigned max tests as well
as signed max tests. Along with r73717, this helps CodeGen avoid
emitting code for a maximum operation for this class of loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73718
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 18 Jun 2009 20:21:07 +0000 (20:21 +0000)]
Recognize n != 0 ? n : 1 as umax(n, 1). Previously only ULT/UGT/ULE/UGE
comparisons were recognized for umax, but instcombine canonicalizes
unsigned comparisons with zero to this simpler form.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73717
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 18 Jun 2009 20:15:26 +0000 (20:15 +0000)]
Simplify using mutexes that become no-ops when not in multithreaded mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73716
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Thu, 18 Jun 2009 20:05:31 +0000 (20:05 +0000)]
Revert IRBuilder CC propagation. Fix SimplifyLibCalls instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73715
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 18 Jun 2009 19:10:19 +0000 (19:10 +0000)]
Simplify a lot of code by using a R/W mutex that becomes a no-op when multithreading is disabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73714
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 18 Jun 2009 18:36:34 +0000 (18:36 +0000)]
Use SmartMutex to simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73712
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 18 Jun 2009 18:29:03 +0000 (18:29 +0000)]
Simplify the SmartMutex implementation a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73711
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 18 Jun 2009 18:26:15 +0000 (18:26 +0000)]
Give RWMutex the SmartRWMutex treatment too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73710
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 18 Jun 2009 17:53:17 +0000 (17:53 +0000)]
Insert a SmartMutex templated class into the class hierarchy, which takes a template parameter specifying whether this mutex
should become a no-op when not running in multithreaded mode. Make sys::Mutex a typedef of SmartMutex<false>, to preserve source compatibility.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73709
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 18 Jun 2009 17:47:09 +0000 (17:47 +0000)]
Update CMake files to account for new location of Threading.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73708
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 18 Jun 2009 16:54:52 +0000 (16:54 +0000)]
Move Threading.[h|cpp] from Support to System.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73707
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 18 Jun 2009 16:54:06 +0000 (16:54 +0000)]
Remove the code from IVUsers that attempted to handle
casted induction variables in cases where the cast
isn't foldable. It ended up being a pessimization in
many cases. This could be fixed, but it would require
a bunch of complicated code in IVUsers' clients. The
advantages of this approach aren't visible enough to
justify it at this time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73706
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 18 Jun 2009 16:30:21 +0000 (16:30 +0000)]
Generalize the zext(trunc(t) & C) instcombine to work even with
C is not a low-bits mask, and add a similar instcombine for
zext((trunc(t) & C) ^ C).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73705
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 18 Jun 2009 16:24:47 +0000 (16:24 +0000)]
Update a comment to reflect the code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73704
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 18 Jun 2009 16:17:42 +0000 (16:17 +0000)]
Fix the double checked locking in this file too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73703
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 18 Jun 2009 16:08:27 +0000 (16:08 +0000)]
As pointed out by Duncan, I accidentally dropped the first MemoryFence of the
double-checked locking pattern here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73701
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Thu, 18 Jun 2009 08:30:57 +0000 (08:30 +0000)]
Forgot to commit this hunk
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73693
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Thu, 18 Jun 2009 08:13:56 +0000 (08:13 +0000)]
Propagate calling conv for invokes too
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73692
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Jun 2009 04:56:53 +0000 (04:56 +0000)]
Don't use int8_t, that requires DataTypes.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73682
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 18 Jun 2009 04:44:46 +0000 (04:44 +0000)]
Fix build when disable thread support.
Patch by Howard Su.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73680
91177308-0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Thu, 18 Jun 2009 04:11:43 +0000 (04:11 +0000)]
include header for uint8_t.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73675
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 18 Jun 2009 03:01:42 +0000 (03:01 +0000)]
Add braces to clarify if/else structure and remove warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73673
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 18 Jun 2009 02:04:01 +0000 (02:04 +0000)]
- Update register allocation hint after coalescing. This is done by the target since the hint is target dependent. This is important for ARM register pair hints.
- Register allocator should resolve the second part of the hint (register number) before passing it to the target since it knows virtual register to physical register mapping.
- More fixes to get ARM load / store double word working.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73671
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Thu, 18 Jun 2009 01:07:23 +0000 (01:07 +0000)]
It looks like nobody is working on PR 4158, so I'm
adding a check to catch this case at compile time
instead of quietly generating incorrect code.
That will at least let us identify CBE failures
that are not due to this problem.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73668
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 18 Jun 2009 00:37:45 +0000 (00:37 +0000)]
Fix trailing whitespace from ScalarEvolution::print.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73666
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 18 Jun 2009 00:36:17 +0000 (00:36 +0000)]
ARM unified syntax is not specific to ELF; use it for Darwin, too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73665
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 18 Jun 2009 00:00:20 +0000 (00:00 +0000)]
Teach ScalarEvolution how to recognize another xor(and(x, C), C) case.
If C is a single bit and the and gets analyzed as a truncate and
zero-extend, the xor can be represnted as an add.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73664
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 17 Jun 2009 23:54:37 +0000 (23:54 +0000)]
Delete unnecessary braces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73663
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 17 Jun 2009 23:49:06 +0000 (23:49 +0000)]
Reapply r73647 in a non-broken form.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73662
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 17 Jun 2009 23:43:36 +0000 (23:43 +0000)]
Fix asm string from MOVi16
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73661
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 17 Jun 2009 23:43:18 +0000 (23:43 +0000)]
Thumb2 instructions are enabled only in unified assembler mode.
Emit switch directive for it. I have no idea whether this is
requirement for Darwin or not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73660
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 17 Jun 2009 23:17:05 +0000 (23:17 +0000)]
Instcombine zext(trunc(x) & mask) to x&mask, even if the trunc has
multiple users.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73656
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 17 Jun 2009 22:53:57 +0000 (22:53 +0000)]
Use double-checked locking for this lazy initialization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73653
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 17 Jun 2009 22:23:31 +0000 (22:23 +0000)]
Protect the GC table in Function.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73647
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 17 Jun 2009 22:20:46 +0000 (22:20 +0000)]
Honour calling convention and attributes of Callee by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73646
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 17 Jun 2009 22:01:09 +0000 (22:01 +0000)]
Use atomic increment here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73643
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 17 Jun 2009 21:56:05 +0000 (21:56 +0000)]
Thread-safe (and ManagedStatic-ized) LeakDetector!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73642
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 17 Jun 2009 21:28:54 +0000 (21:28 +0000)]
Guard mutation of the timing info global.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73639
91177308-0d34-0410-b5e6-
96231b3b80d8