Sanjiv Gupta [Thu, 4 Jun 2009 08:52:28 +0000 (08:52 +0000)]
Custom lower SUB with two register operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72861
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Thu, 4 Jun 2009 08:18:25 +0000 (08:18 +0000)]
Fix comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72858
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Thu, 4 Jun 2009 07:09:50 +0000 (07:09 +0000)]
Add support for outputting ANSI colors to raw_fd_ostream.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72854
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Thu, 4 Jun 2009 02:32:04 +0000 (02:32 +0000)]
PR3739, part 2: Use an explicit store to spill XMM registers. (Previously,
the code tried to use "push", which doesn't exist for XMM registers.)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72836
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Thu, 4 Jun 2009 02:02:01 +0000 (02:02 +0000)]
PR3739, part 1: Disable the red zone on Win64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72830
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 4 Jun 2009 01:59:35 +0000 (01:59 +0000)]
Remove a #include of <iostream>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72828
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 4 Jun 2009 01:15:28 +0000 (01:15 +0000)]
Re-apply 72756 with fixes. One of those was introduced by we changed MachineInstrBuilder::addReg() interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72826
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Thu, 4 Jun 2009 01:04:22 +0000 (01:04 +0000)]
Removed more testing code that snuck in earlier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72825
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Kledzik [Thu, 4 Jun 2009 00:28:45 +0000 (00:28 +0000)]
<rdar://problem/
6940611> libLTO.dylib needs to let linker specify path to assembler
Add lto_codegen_set_assembler_path() API which allows the linker to specify the
path to the assembler tool to run. When assembler is used (instead of compiler)
different command line options are used.
Add LTO_API_VERSION #define so clients (linkers) can conditionalize use of new APIs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72823
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Thu, 4 Jun 2009 00:15:51 +0000 (00:15 +0000)]
Use uint8_t and int32_t in {JIT,Machine}CodeEmiters
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72821
91177308-0d34-0410-b5e6-
96231b3b80d8
Stuart Hastings [Wed, 3 Jun 2009 22:59:34 +0000 (22:59 +0000)]
Evan says it's wrong; back out 72808.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72817
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Kledzik [Wed, 3 Jun 2009 22:52:12 +0000 (22:52 +0000)]
<rdar://problem/
6941517> C++ static constructors not preserved for static executable using LTO
Move setRelocationModel() to be called before TargetMachine is instantiated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72816
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 3 Jun 2009 21:51:32 +0000 (21:51 +0000)]
Change LTO to run the global opt pass twice.
- This matches llvm-ld.
It took a bit of archeology to figure out what the right thing to do was
(whether this was intentionally added or intentionally removed). My final
conclusion is that Chris added this intentionally here:
http://llvm.org/viewvc/llvm-project?view=rev&revision=16913
but the changes weren't propogated to llvm-ld until here:
http://llvm.org/viewvc/llvm-project?view=rev&revision=34058
which was after lto.cpp had been cloned off (of llvm-ld), here:
http://llvm.org/viewvc/llvm-project?view=rev&revision=29494
From the commit message, it looks like the motivation for running global opt
again is because we ran it prior to inlining. Based on that I updated the
comment and also only run the pass if we actually ran the inliner.
Chris, please review.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72811
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Wed, 3 Jun 2009 21:42:06 +0000 (21:42 +0000)]
PR4317: Handle splits where the new block is unreachable correctly in
DominatorTreeBase::Split.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72810
91177308-0d34-0410-b5e6-
96231b3b80d8
Stuart Hastings [Wed, 3 Jun 2009 21:39:14 +0000 (21:39 +0000)]
Recognize another euphemism for MOVDQ2Q.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72808
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 3 Jun 2009 21:13:54 +0000 (21:13 +0000)]
For Darwin / x86_64, override -relocation-model=static to pic if the output is assembly since Darwin assembler does not really support -static codeine.
I view this as a temporary workaround until the assembler / linker changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72806
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 3 Jun 2009 21:06:14 +0000 (21:06 +0000)]
Add createStandardLTOPasses to StandardPasses.h, and move lto and llvm-ld over.
- I know it sounds crazy, but I think all the pass lists are now coalesced into
StandardPasses.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72805
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 3 Jun 2009 20:30:14 +0000 (20:30 +0000)]
Convert Alpha and Mips to use a MachineFunctionInfo subclass to
carry GlobalBaseReg, and GlobalRetAddr too in Alpha's case. This
eliminates the need for them to search through the
MachineRegisterInfo livein list in order to identify these
virtual registers. EmitLiveInCopies is now the only user of the
virtual register portion of MachineRegisterInfo's livein data.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72802
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 3 Jun 2009 20:20:00 +0000 (20:20 +0000)]
Remove the redundant TM member from X86DAGToDAGISel; replace it
with an accessor method which simply casts the parent class
SelectionDAGISel's TM to the target-specific type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72801
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 3 Jun 2009 19:11:31 +0000 (19:11 +0000)]
Don't attempt to simplify an non-affine IV expression if it can't
be simplified to a loop-invariant value. This fixes PR4315.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72798
91177308-0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Wed, 3 Jun 2009 19:07:46 +0000 (19:07 +0000)]
Make the buildbot see green (to make it easier to spot the next person
that puts a new warning in).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72797
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 3 Jun 2009 18:22:15 +0000 (18:22 +0000)]
Switch opt to using StandardPasses.h
- No functionality change, but please check if you don't believe me.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72789
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 3 Jun 2009 18:13:05 +0000 (18:13 +0000)]
Remove some silly code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72788
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 3 Jun 2009 17:52:39 +0000 (17:52 +0000)]
Add StandardPasses.h which embeds the standard compilation passes shared by
clang/llvm-gcc.
- Implemented as inline functions for linking simplicity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72786
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 3 Jun 2009 17:47:27 +0000 (17:47 +0000)]
Move ELFCodeEmiter stuff to new files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72785
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 3 Jun 2009 16:55:02 +0000 (16:55 +0000)]
Revert 72650
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72783
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 3 Jun 2009 16:47:12 +0000 (16:47 +0000)]
Remove unnecessary #includes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72782
91177308-0d34-0410-b5e6-
96231b3b80d8
Sanjiv Gupta [Wed, 3 Jun 2009 16:27:49 +0000 (16:27 +0000)]
Emit file directives correctly in case of a .bc is generated by llvm-ld after linking in several .bc files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72781
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Wed, 3 Jun 2009 15:42:26 +0000 (15:42 +0000)]
lets not forget about c++!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72778
91177308-0d34-0410-b5e6-
96231b3b80d8
Sanjiv Gupta [Wed, 3 Jun 2009 15:31:12 +0000 (15:31 +0000)]
FrameIndex could be used as a value (addressof (arg)) or as an address.
Expand it exactly like GlobalAddress.
Fix some more crashes (InsertBranch() not being implemented) for compiling hitec libs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72776
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Wed, 3 Jun 2009 15:29:09 +0000 (15:29 +0000)]
CMake: Added missing source file to lib/CodeGen/CMakeLists.txt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72775
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Wed, 3 Jun 2009 15:11:25 +0000 (15:11 +0000)]
CMake: Implements and documents option LLVM_ENABLE_ASSERTS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72774
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Wed, 3 Jun 2009 15:06:19 +0000 (15:06 +0000)]
Document how easy it is to use the gold plugin and have LTO with autotooled projects.
Please correct the documentation if I missed anything.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72773
91177308-0d34-0410-b5e6-
96231b3b80d8
Sanjiv Gupta [Wed, 3 Jun 2009 13:36:44 +0000 (13:36 +0000)]
Fixed a bug in which signed comparisons were being used instead of unsigned comparisons.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72771
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 3 Jun 2009 12:05:18 +0000 (12:05 +0000)]
Avoid a warning "'U' might be used uninitialized in
this function" when using a not-too-smart compiler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72768
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 3 Jun 2009 11:54:28 +0000 (11:54 +0000)]
At a newline at the end of this file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72767
91177308-0d34-0410-b5e6-
96231b3b80d8
Jay Foad [Wed, 3 Jun 2009 10:20:10 +0000 (10:20 +0000)]
Document how phi and invoke instructions interact with SSA form.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72762
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 3 Jun 2009 09:00:27 +0000 (09:00 +0000)]
Fix for PR4225: When rewriter reuse a value in a physical register , it clear the register kill operand marker and its kill ops information. However, the cleared operand may be a def of a super-register. Clear the kill ops info for the super-register's sub-registers as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72758
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 3 Jun 2009 07:40:47 +0000 (07:40 +0000)]
Temporarily revert 72756 for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72757
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 3 Jun 2009 06:14:58 +0000 (06:14 +0000)]
Fold preceding / trailing base inc / dec into the single load / store as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72756
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 3 Jun 2009 05:15:46 +0000 (05:15 +0000)]
If there is a def of a super-register followed by a use of a sub-register, do *not* add an implicit def of the sub-register. e.g.
EAX = ..., AX<imp-def>
...
= AX
This creates a double-def. Apparently this used to be necessary but is no longer needed.
Thanks to Anton for pointing this out. Anton, I cannot create a test case without your uncommitted ARM patches. Please check in a test case for me.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72755
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 3 Jun 2009 03:43:31 +0000 (03:43 +0000)]
Move structures and classes into header files, providing two new headers and
one new .cpp file, in preparation for merging in the Direct Object Emission
changes we're working on. No functional changes.
Fixed coding style issues on the original patch. Patch by Aaron Gray
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72754
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 3 Jun 2009 00:37:20 +0000 (00:37 +0000)]
Revert r72734. The Darwin assembler doesn't support the static
relocation model on x86-64. Higher level logic should override
the relocation model to PIC on x86_64-apple-darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72746
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 3 Jun 2009 00:13:48 +0000 (00:13 +0000)]
Change TargetFolder's TD member from a reference to a
pointer, now that ConstantFoldConstantExpression can
accept a null TargetData pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72744
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 2 Jun 2009 21:48:15 +0000 (21:48 +0000)]
Change ConstantFoldConstantExpression to accept a null
TargetData pointer. The only thing it's used for are
calls to ConstantFoldCompareInstOperands and
ConstantFoldInstOperands, which both already accept a
null TargetData pointer. This makes
ConstantFoldConstantExpression easier to use in clients
where TargetData is optional.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72741
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 2 Jun 2009 21:37:43 +0000 (21:37 +0000)]
Delete an unnecessary forward declaration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72740
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 2 Jun 2009 21:29:13 +0000 (21:29 +0000)]
Fix CodeGenPrepare's address-mode sinking to handle unusual
addresses, involving Base values which do not have Pointer type.
This fixes PR4297.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72739
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 2 Jun 2009 21:14:15 +0000 (21:14 +0000)]
NightlyTest: Stop running a separate Olden pass during nightly test.
- Unless I'm mistaken, these results weren't even being reported and just
served to clobber the previous build products and waste cycles.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72738
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Tue, 2 Jun 2009 20:32:59 +0000 (20:32 +0000)]
fix build on VC++2k8.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72736
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Tue, 2 Jun 2009 20:30:03 +0000 (20:30 +0000)]
Fixed warning, removed some temporary validation code that snuck in during my last commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72735
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 2 Jun 2009 20:09:31 +0000 (20:09 +0000)]
On Darwin x86_64 small code model doesn't guarantee code address fits in 32-bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72734
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 2 Jun 2009 17:35:55 +0000 (17:35 +0000)]
Undef MemoryFence when compiling on MSVC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72732
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 2 Jun 2009 17:26:29 +0000 (17:26 +0000)]
Simplify assertion message to avoid confusion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72731
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Tue, 2 Jun 2009 16:53:25 +0000 (16:53 +0000)]
Update to in-place spilling framework. Includes live interval scaling and trivial rewriter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72729
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 2 Jun 2009 03:12:52 +0000 (03:12 +0000)]
Revert 72707 and 72709, for the moment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72712
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 2 Jun 2009 00:56:07 +0000 (00:56 +0000)]
Avoid infinite looping in AllGlobalLoadUsesSimpleEnoughForHeapSRA(). This can happen when PHI uses are recursively dependent on each other.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72710
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 1 Jun 2009 23:48:58 +0000 (23:48 +0000)]
Add missing file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72709
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Kledzik [Mon, 1 Jun 2009 23:41:09 +0000 (23:41 +0000)]
update comments about .objc_ symbols being generated
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72708
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 1 Jun 2009 23:27:20 +0000 (23:27 +0000)]
Make the implicit inputs and outputs of target-independent
ADDC/ADDE use MVT::i1 (later, whatever it gets legalized to)
instead of MVT::Flag. Remove CARRY_FALSE in favor of 0; adjust
all target-independent code to use this format.
Most targets will still produce a Flag-setting target-dependent
version when selection is done. X86 is converted to use i32
instead, which means TableGen needs to produce different code
in xxxGenDAGISel.inc. This keys off the new supportsHasI1 bit
in xxxInstrInfo, currently set only for X86; in principle this
is temporary and should go away when all other targets have
been converted. All relevant X86 instruction patterns are
modified to represent setting and using EFLAGS explicitly. The
same can be done on other targets.
The immediate behavior change is that an ADC/ADD pair are no
longer tightly coupled in the X86 scheduler; they can be
separated by instructions that don't clobber the flags (MOV).
I will soon add some peephole optimizations based on using
other instructions that set the flags to feed into ADC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72707
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 1 Jun 2009 23:13:42 +0000 (23:13 +0000)]
Comment grammaro/clarification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72706
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 1 Jun 2009 23:12:52 +0000 (23:12 +0000)]
Trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72705
91177308-0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Mon, 1 Jun 2009 21:02:35 +0000 (21:02 +0000)]
Dcoument that the opauque value used to construct QNaNs is truncated
as necessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72702
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Kledzik [Mon, 1 Jun 2009 20:33:09 +0000 (20:33 +0000)]
<rdar://problem/
6927148> libLTO needs to handle i386 magic objc class symbols
Parse __OBJC data structures and synthesize magic .objc_ symbols.
Also, alter mangler so that objc method names are readable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72700
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 1 Jun 2009 20:18:46 +0000 (20:18 +0000)]
Accidental commit. This isn't ready for prime time just yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72699
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Mon, 1 Jun 2009 20:00:48 +0000 (20:00 +0000)]
Implement review feedback. Make thumb2 'normal' subtarget feature
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72698
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Mon, 1 Jun 2009 19:57:37 +0000 (19:57 +0000)]
Fix new CodeEmitter stuff to follow LLVM codying style. Patch by Aaron Gray
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72697
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Mon, 1 Jun 2009 19:03:17 +0000 (19:03 +0000)]
Do not emit "generic" CPU string. This fixes PR4291.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72696
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Mon, 1 Jun 2009 09:14:32 +0000 (09:14 +0000)]
PR4286: Make RewriteLoadUserOfWholeAlloca and
RewriteStoreUserOfWholeAlloca deal with tail padding because
isSafeUseOfBitCastedAllocation expects them to. Otherwise, we crash
trying to erase the bitcast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72688
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 1 Jun 2009 04:42:10 +0000 (04:42 +0000)]
Update the bitcode reader to support reading .bc files where the embedded
metadata references non-Constant values such as instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72685
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 1 Jun 2009 04:41:03 +0000 (04:41 +0000)]
Add missing codenames to the .bc analyzer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72684
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sun, 31 May 2009 17:52:18 +0000 (17:52 +0000)]
Fix a grammaro and clarify a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72668
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sun, 31 May 2009 16:18:57 +0000 (16:18 +0000)]
Delete an obsolete sentance from a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72667
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sun, 31 May 2009 16:18:03 +0000 (16:18 +0000)]
Fix the name of the function in this comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72666
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Sun, 31 May 2009 09:03:40 +0000 (09:03 +0000)]
Be more aggressive in doing LoadPRE by tracing backwards when a block only has
a single predecessor.
Patch by Jakub Staszak.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72661
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sun, 31 May 2009 06:07:28 +0000 (06:07 +0000)]
Fix typo in error message.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72659
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Sun, 31 May 2009 04:15:38 +0000 (04:15 +0000)]
Rename CustomLowerResults to CustomLowerNode, since
it is used both when a result is illegal and when an
operand is illegal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72658
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Sat, 30 May 2009 23:50:33 +0000 (23:50 +0000)]
Use uint8_t and int32_t in {JIT,Machine}CodeEmiters
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72650
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Sat, 30 May 2009 21:05:47 +0000 (21:05 +0000)]
Add AMD64 elf machine type
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72635
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Sat, 30 May 2009 20:51:52 +0000 (20:51 +0000)]
First patch in the direction of splitting MachineCodeEmitter in two subclasses:
JITCodeEmitter and ObjectCodeEmitter. No functional changes yet. Patch by Aaron Gray
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72631
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 30 May 2009 18:43:04 +0000 (18:43 +0000)]
fix PR4284, a bug in simplifylibcalls handling memcmp. Patch by
Benjamin Kramer!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72625
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sat, 30 May 2009 16:08:30 +0000 (16:08 +0000)]
Metadata uses metadata type not empty struct.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72623
91177308-0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Sat, 30 May 2009 15:19:29 +0000 (15:19 +0000)]
Add some documentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72622
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Sat, 30 May 2009 13:57:05 +0000 (13:57 +0000)]
Adjust these tests now that "extern inline"
functions are being output with bodies and
available_externally linkage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72620
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 30 May 2009 08:43:27 +0000 (08:43 +0000)]
(i64 (zext (srl GR32 8))) -> movzbl AH is not safe since srl 8 only clear the top 8 bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72618
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sat, 30 May 2009 05:06:04 +0000 (05:06 +0000)]
Give embedded metadata its own type instead of relying on EmptyStructTy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72610
91177308-0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Sat, 30 May 2009 03:49:43 +0000 (03:49 +0000)]
Add support for letting the client choose different flavors of NaNs. Testcase to be
added in clang.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72606
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sat, 30 May 2009 01:09:53 +0000 (01:09 +0000)]
Untabification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72604
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sat, 30 May 2009 00:58:37 +0000 (00:58 +0000)]
Untabify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72603
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 30 May 2009 00:48:34 +0000 (00:48 +0000)]
Untabify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72600
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Fri, 29 May 2009 23:41:08 +0000 (23:41 +0000)]
Add placeholder for thumb2 stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72593
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 29 May 2009 20:38:16 +0000 (20:38 +0000)]
Enable GVN Load PRE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72589
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Fri, 29 May 2009 19:39:36 +0000 (19:39 +0000)]
Dan noticed that the verifier wasn't thoroughly checking uses of
invoke results (see the testcases). Tighten up the checking.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72586
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Fri, 29 May 2009 17:08:57 +0000 (17:08 +0000)]
Fix some typos
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72579
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Fri, 29 May 2009 16:58:36 +0000 (16:58 +0000)]
just show the instruction, its not that slow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72577
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Fri, 29 May 2009 10:28:44 +0000 (10:28 +0000)]
for instructions with void type we have no choice but print the instruction as
is, otherwise we get a <badref>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72567
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Fri, 29 May 2009 09:46:03 +0000 (09:46 +0000)]
Add a DEBUG() output to GVN that prints the instruction clobbering a load.
This is useful when trying to figure out why GVN didn't eliminate redundant
loads.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72565
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 29 May 2009 05:37:54 +0000 (05:37 +0000)]
Fix an issue where phiMap was not being updated properly when doing load PRE.
Diagnosis and patch thanks to Jakub Staszak.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72562
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 29 May 2009 05:31:40 +0000 (05:31 +0000)]
Default isNarrowingProfitable to false.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72561
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 29 May 2009 05:28:52 +0000 (05:28 +0000)]
Remove an accidental commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72560
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 29 May 2009 01:44:43 +0000 (01:44 +0000)]
More h-registers tricks: folding zext nodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72558
91177308-0d34-0410-b5e6-
96231b3b80d8