Chris Lattner [Fri, 27 Nov 2009 00:34:38 +0000 (00:34 +0000)]
teach phi translation of GEPs to simplify geps like 'gep x, 0'.
This allows us to compile the example from PR5313 into:
LBB1_2: ## %bb
incl %ecx
movb %al, (%rsi)
movslq %ecx, %rax
movb (%rdi,%rax), %al
testb %al, %al
jne LBB1_2
instead of:
LBB1_2: ## %bb
movslq %eax, %rcx
incl %eax
movb (%rdi,%rcx), %cl
movb %cl, (%rsi)
movslq %eax, %rcx
cmpb $0, (%rdi,%rcx)
jne LBB1_2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89981
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 27 Nov 2009 00:29:05 +0000 (00:29 +0000)]
factor some instcombine simplifications for getelementptr out to a new
SimplifyGEPInst method in InstructionSimplify.h. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89980
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 27 Nov 2009 00:07:37 +0000 (00:07 +0000)]
teach memdep to do trivial PHI translation of GEPs. More to
come.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89979
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 23:41:07 +0000 (23:41 +0000)]
Teach memdep to phi translate bitcasts. This allows us to compile
the example in GCC PR16799 to:
LBB1_2: ## %bb1
movl %eax, %eax
subq %rax, %rdi
movq %rdi, (%rcx)
movl (%rdi), %eax
testl %eax, %eax
je LBB1_2
instead of:
LBB1_2: ## %bb1
movl (%rdi), %ecx
subq %rcx, %rdi
movq %rdi, (%rax)
cmpl $0, (%rdi)
je LBB1_2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89978
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 23:32:59 +0000 (23:32 +0000)]
convert to filecheck
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89977
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 26 Nov 2009 23:19:05 +0000 (23:19 +0000)]
Fix typo spotted by Gabor Greif.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89976
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 23:18:49 +0000 (23:18 +0000)]
factor some code out into some helper functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89975
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 26 Nov 2009 22:54:26 +0000 (22:54 +0000)]
Clean up file, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89974
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 22:48:23 +0000 (22:48 +0000)]
Add a hack for PR5601, a crash on obsolete syntax that we plan to
remove in LLVM 3.0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89973
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 22:08:06 +0000 (22:08 +0000)]
fix crash on Transforms/InstCombine/intrinsics.ll introduced by r89970
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89972
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 22:04:42 +0000 (22:04 +0000)]
Fix PR5471 by removing an instcombine xform. Some pieces of the code
generates store to undef and some generates store to null as the idiom
for undefined behavior. Since simplifycfg zaps both, don't remove the
undefined behavior in instcombine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89971
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 21:42:47 +0000 (21:42 +0000)]
implement a bunch of xforms for overflow intrinsics, based on a patch
by Alastair Lynn.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89970
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 26 Nov 2009 21:38:41 +0000 (21:38 +0000)]
Rename new TailDuplicationPass to avoid name conflict with the old one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89968
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 19:25:46 +0000 (19:25 +0000)]
@test9 is a testcase for r89958. Before 89958, we misanalyzed the
first expression as P+4+4*i which we considered to possibly alias
P+4*j. Now we correctly analyze the former one as P+1+4*i.
@test10 is a sanity test that verfies that we know that P+4+4*i != P+4*i.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89960
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 18:53:33 +0000 (18:53 +0000)]
Implement PR1143 (at -m64) by making basicaa look through extensions. We
previously already handled it at -m32 because there were no i32->i64
extensions for addressing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89959
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 18:35:46 +0000 (18:35 +0000)]
fix two transposed lines duncan caught and add an explanatory comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89958
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 17:14:10 +0000 (17:14 +0000)]
this todo is resolved.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89957
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 17:12:50 +0000 (17:12 +0000)]
move DecomposeGEPExpression out into ValueTracking.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89956
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 17:00:01 +0000 (17:00 +0000)]
teach GetLinearExpression to be a bit more aggressive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89955
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 16:52:32 +0000 (16:52 +0000)]
resolve a fixme. I haven't figured out how to write a testcase
to exercise this though.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89954
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 16:42:00 +0000 (16:42 +0000)]
update status of this. basicaa is much improved now,
only missing the one form (in this testcase). Dan, do you
consider this example to be important?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89953
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 16:26:43 +0000 (16:26 +0000)]
Teach basicaa that x|c == x+c when the c bits of x are clear. This
allows us to compile the example in readme.txt into:
LBB1_1: ## %bb
movl 4(%rdx,%rax), %ecx
movl %ecx, %esi
imull (%rdx,%rax), %esi
imull %esi, %ecx
movl %esi, 8(%rdx,%rax)
imull %ecx, %esi
movl %ecx, 12(%rdx,%rax)
movl %esi, 16(%rdx,%rax)
imull %ecx, %esi
movl %esi, 20(%rdx,%rax)
addq $16, %rax
cmpq $4000, %rax
jne LBB1_1
instead of:
LBB1_1:
movl (%rdx,%rax), %ecx
imull 4(%rdx,%rax), %ecx
movl %ecx, 8(%rdx,%rax)
imull 4(%rdx,%rax), %ecx
movl %ecx, 12(%rdx,%rax)
imull 8(%rdx,%rax), %ecx
movl %ecx, 16(%rdx,%rax)
imull 12(%rdx,%rax), %ecx
movl %ecx, 20(%rdx,%rax)
addq $16, %rax
cmpq $4000, %rax
jne LBB1_1
GCC (4.2) doesn't seem to be able to eliminate the loads in this
testcase either, it generates:
L2:
movl (%rdx), %eax
imull 4(%rdx), %eax
movl %eax, 8(%rdx)
imull 4(%rdx), %eax
movl %eax, 12(%rdx)
imull 8(%rdx), %eax
movl %eax, 16(%rdx)
imull 12(%rdx), %eax
movl %eax, 20(%rdx)
addl $4, %ecx
addq $16, %rdx
cmpl $1002, %ecx
jne L2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89952
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 16:18:10 +0000 (16:18 +0000)]
teach basicaa that A[i] != A[i+1].
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89951
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 16:08:41 +0000 (16:08 +0000)]
rename test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89950
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 02:17:34 +0000 (02:17 +0000)]
Change the other half of aliasGEP (which handles GEP differencing) to use DecomposeGEPExpression. This dramatically simplifies and shrinks the code by eliminating the horrible CheckGEPInstructions method, fixes a miscompilation (@test3) and makes the code more aggressive. In particular, we now handle the @test4 case, which is reduced from the SmallPtrSet constructor. Missing this caused us to emit a variable length memset instead of a fixed size one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89922
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 02:16:28 +0000 (02:16 +0000)]
add a new random feature test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89921
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 02:14:59 +0000 (02:14 +0000)]
Generalize DecomposeGEPExpression to exactly handle what Value::getUnderlyingObject does (when TD is around). This allows us to avoid calling DecomposeGEPExpression unless the ultimate alias check we care about passes, speedup up BasicAA a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89920
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 02:13:03 +0000 (02:13 +0000)]
Implement a new DecomposeGEPExpression method, which decomposes a GEP into a list of scaled offsets. Use this to eliminate some previous ad-hoc code which was subtly broken (it assumed all Constant*'s were non-zero, but strange constant express could be zero).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89915
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 02:11:08 +0000 (02:11 +0000)]
Use GEPOperator more pervasively to simplify code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89914
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 01:51:18 +0000 (01:51 +0000)]
update some notes slightly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89913
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Nov 2009 01:50:12 +0000 (01:50 +0000)]
remove some redundant braces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89912
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 26 Nov 2009 00:35:01 +0000 (00:35 +0000)]
Test for 89905.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89906
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 26 Nov 2009 00:32:36 +0000 (00:32 +0000)]
When all defs of a vr are implicit_def, delete all of the defs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89905
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 26 Nov 2009 00:32:21 +0000 (00:32 +0000)]
Split tail duplication into a separate pass. This is needed to avoid
running tail duplication when doing branch folding for if-conversion, and
we also want to be able to run tail duplication earlier to fix some
reg alloc problems. Move the CanFallThrough function from BranchFolding
to MachineBasicBlock so that it can be shared by TailDuplication.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89904
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 25 Nov 2009 23:50:09 +0000 (23:50 +0000)]
Test for llvm-gcc checkin 89898.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89899
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 25 Nov 2009 23:28:01 +0000 (23:28 +0000)]
Update to reflect recent debugging information encoding changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89896
91177308-0d34-0410-b5e6-
96231b3b80d8
Viktor Kutuzov [Wed, 25 Nov 2009 22:44:18 +0000 (22:44 +0000)]
Rollback changes r89516: Added two SubtargetFeatures::AddFeatures methods, which accept a comma-separated string or already parsed command line parameters as input, and some code re-factoring to use these new methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89893
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 25 Nov 2009 21:13:39 +0000 (21:13 +0000)]
ProcessImplicitDefs should watch out for invalidated iterator and extra implicit operands on copies.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89880
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 25 Nov 2009 19:57:14 +0000 (19:57 +0000)]
Tail duplicate indirect branches for PowerPC, too.
With the testcase for pr3120, the "threaded interpreter" runtime decreases
from 1788 to 1413 with this change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89877
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 25 Nov 2009 18:26:09 +0000 (18:26 +0000)]
Avoid some possibly unsafe uses of StringRef::data().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89873
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 25 Nov 2009 17:36:49 +0000 (17:36 +0000)]
Use StringRef (again) in DebugInfo interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89866
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 25 Nov 2009 17:27:53 +0000 (17:27 +0000)]
Based on the testcase for pr3120, running on my MacPro with Xeon processors,
it is definitely profitable to tail duplicate indirect branches for x86.
This is likely to be true to various degrees for all modern x86 processors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89865
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 25 Nov 2009 12:17:58 +0000 (12:17 +0000)]
Support PIC loading of constant pool entries
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89863
91177308-0d34-0410-b5e6-
96231b3b80d8
Edward O'Callaghan [Wed, 25 Nov 2009 12:00:34 +0000 (12:00 +0000)]
Adjust comments to new semantics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89862
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 25 Nov 2009 06:53:08 +0000 (06:53 +0000)]
Sketch structure for X86 disassembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89850
91177308-0d34-0410-b5e6-
96231b3b80d8
Edward O'Callaghan [Wed, 25 Nov 2009 06:32:19 +0000 (06:32 +0000)]
API change Path::isSpecialFile to Path::isRegularFile, improve semantics in regards to comments from 89765 post review.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89848
91177308-0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 25 Nov 2009 06:04:18 +0000 (06:04 +0000)]
Perform explicit instantiations in the proper namespace, since Clang diagnoses this ill-formity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89846
91177308-0d34-0410-b5e6-
96231b3b80d8
Edward O'Callaghan [Wed, 25 Nov 2009 05:38:41 +0000 (05:38 +0000)]
Reverting patch in revision 89758, initial attempt at fixing PR5373 has proven to be bogus.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89844
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 25 Nov 2009 04:46:58 +0000 (04:46 +0000)]
Add the rest of the build system logic for optional target disassemblers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89841
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 25 Nov 2009 04:37:28 +0000 (04:37 +0000)]
Regenerate configure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89840
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 25 Nov 2009 04:30:13 +0000 (04:30 +0000)]
Add CMake and configure logic to create llvm/Config/Disassemblers.defs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89839
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 25 Nov 2009 02:13:23 +0000 (02:13 +0000)]
Sketch TableGen disassembler emitter, based on patch by Sean Callanan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89833
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 25 Nov 2009 01:05:25 +0000 (01:05 +0000)]
Use endianess dependent offsets for load/store of doubles when
using two swc/lwc instead of sdc/ldc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89826
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 25 Nov 2009 00:58:21 +0000 (00:58 +0000)]
Fix compiler warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89824
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 25 Nov 2009 00:47:43 +0000 (00:47 +0000)]
Only include in the callee saved regs the sub registers to avoid
unnecessary save/restore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89823
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 25 Nov 2009 00:36:00 +0000 (00:36 +0000)]
Add proper emission of load/store double to stack slots for mips1 targets!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89821
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 25 Nov 2009 00:31:13 +0000 (00:31 +0000)]
Revert r89803.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89819
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 24 Nov 2009 23:35:49 +0000 (23:35 +0000)]
Refactor target hook for tail duplication as requested by Chris.
Make tail duplication of indirect branches much more aggressive (for targets
that indicate that it is profitable), based on further experience with
this transformation. I compiled 3 large applications with and without
this more aggressive tail duplication and measured minimal changes in code
size. ("size" on Darwin seems to round the text size up to the nearest
page boundary, so I can only say that any code size increase was less than
one 4k page.) Radar
7421267.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89814
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 24 Nov 2009 22:59:02 +0000 (22:59 +0000)]
Do not store R31 into the caller's link area on PPC.
This violates the ABI (that area is "reserved"), and
while it is safe if all code is generated with current
compilers, there is some very old code around that uses
that slot for something else, and breaks if it is stored
into. Adjust testcases looking for current behavior.
I've verified that the stack frame size is right in all
testcases, whether it changed or not.
7311323.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89811
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 24 Nov 2009 21:38:54 +0000 (21:38 +0000)]
Enable debug info for ppc-darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89803
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 24 Nov 2009 19:42:17 +0000 (19:42 +0000)]
Use StringRef instead of std::string in DIEString.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89793
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 24 Nov 2009 19:37:07 +0000 (19:37 +0000)]
Remove DebugLabelFolder pass. It is not used by dwarf writer anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89790
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 24 Nov 2009 19:18:41 +0000 (19:18 +0000)]
Swith to pubtypes section before emitting pub types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89787
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 24 Nov 2009 19:03:33 +0000 (19:03 +0000)]
Remove bogus error handling code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89786
91177308-0d34-0410-b5e6-
96231b3b80d8
Edward O'Callaghan [Tue, 24 Nov 2009 16:29:23 +0000 (16:29 +0000)]
Fix comments as pre-post review for rev.89765.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89770
91177308-0d34-0410-b5e6-
96231b3b80d8
Edward O'Callaghan [Tue, 24 Nov 2009 15:19:10 +0000 (15:19 +0000)]
Provide Path::isSpecialFile interface for PR5568.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89765
91177308-0d34-0410-b5e6-
96231b3b80d8
Edward O'Callaghan [Tue, 24 Nov 2009 11:51:52 +0000 (11:51 +0000)]
Fix for PR5373, Credit to Jakub Staszak.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89758
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 24 Nov 2009 08:06:15 +0000 (08:06 +0000)]
Enable predication of NEON instructions in Thumb2 mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89748
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeffrey Yasskin [Tue, 24 Nov 2009 02:11:14 +0000 (02:11 +0000)]
Oops. Re-disable JITTest.NoStubs on ARM and PPC since they still use stubs to
make far calls work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89733
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 24 Nov 2009 01:48:15 +0000 (01:48 +0000)]
Delete some dead and non-obvious code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89729
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 24 Nov 2009 01:14:22 +0000 (01:14 +0000)]
Emit pubtypes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89725
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 24 Nov 2009 01:09:07 +0000 (01:09 +0000)]
Make capitalization of names starting "is" more consistent.
No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89724
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 24 Nov 2009 01:05:23 +0000 (01:05 +0000)]
Data type suffix must come after predicate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89723
91177308-0d34-0410-b5e6-
96231b3b80d8
David Goodwin [Tue, 24 Nov 2009 00:59:08 +0000 (00:59 +0000)]
<rdar://problem/
6721894>. Allow multiple registers to be renamed together (super and sub) if necessary to break an anti-dependence.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89722
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 24 Nov 2009 00:44:37 +0000 (00:44 +0000)]
Materialize global addresses via movt/movw pair, this is always better
than doing the same via constpool:
1. Load from constpool costs 3 cycles on A9, movt/movw pair - just 2.
2. Load from constpool might stall up to 300 cycles due to cache miss.
3. Movt/movw does not use load/store unit.
4. Less constpool entries => better compiler performance.
This is only enabled on ELF systems, since darwin does not have needed
relocations (yet).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89720
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Nov 2009 00:20:27 +0000 (00:20 +0000)]
80 column violations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89718
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeffrey Yasskin [Mon, 23 Nov 2009 23:35:19 +0000 (23:35 +0000)]
* Move stub allocation inside the JITEmitter, instead of exposing a
way for each TargetJITInfo subclass to allocate its own stubs. This
means stubs aren't as exactly-sized anymore, but it lets us get rid of
TargetJITInfo::emitFunctionStubAtAddr(), which lets ARM and PPC
support the eager JIT, fixing http://llvm.org/PR4816.
* Rename the JITEmitter's stub creation functions to describe the kind
of stub they create. So far, all of them create lazy-compilation
stubs, but they sometimes get used when far-call stubs are needed.
Fixing http://llvm.org/PR5201 will involve fixing this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89715
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 23 Nov 2009 23:25:54 +0000 (23:25 +0000)]
enable iv-users simplification by default
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89713
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 23:20:51 +0000 (23:20 +0000)]
Remove ISD::DEBUG_LOC and ISD::DBG_LABEL, which are no longer used.
Note that "hasDotLocAndDotFile"-style debug info was already broken;
people wanting this functionality should implement it in the
AsmPrinter/DwarfWriter code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89711
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeffrey Yasskin [Mon, 23 Nov 2009 22:49:00 +0000 (22:49 +0000)]
Allow more than one stub to be being generated at the same time.
It's probably better in the long run to replace the
indirect-GlobalVariable system. That'll be done after a subsequent
patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89708
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 23 Nov 2009 21:57:23 +0000 (21:57 +0000)]
Massive refactoring of NEON instructions. Separate opcode from data size specifier suffix, move \t up stream to instruction format, and fix more 80 column violations.
This fixes the NEON asm printing so the "predicate" field is printed between the opcode and the data type suffix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89706
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 21:30:55 +0000 (21:30 +0000)]
Simplify this code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89702
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 21:29:08 +0000 (21:29 +0000)]
Print the debug info line and column in MachineInstr::print even when there's
no filename. This situation is apparently fairly common right now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89701
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 23 Nov 2009 21:08:25 +0000 (21:08 +0000)]
move fconst[sd] to UAL. <rdar://
7414913>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89700
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Mon, 23 Nov 2009 21:00:43 +0000 (21:00 +0000)]
Partially revert r84730 by removing N2VDup from ARMInstrFormats.td and modifying
VDUPLND and VDUPLNQ to derive from N2V instead of N2VDup. VDUPLND and VDUPLNQ
now expect op19_18 and op17_16 as the first two args.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89699
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 23 Nov 2009 20:39:53 +0000 (20:39 +0000)]
update test for 89694
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89695
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 23 Nov 2009 20:35:53 +0000 (20:35 +0000)]
fold immediate of a + Const into the user as a subtract if it can fit as a negated two-part immediate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89694
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Mon, 23 Nov 2009 20:09:13 +0000 (20:09 +0000)]
Revert r84572 by removing N3VImm from ARMInstrFormats.td now that we can specify
{?,?,?,?} as op11_8 for VEXTd and VEXTq.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89693
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 23 Nov 2009 19:11:20 +0000 (19:11 +0000)]
Add CreateLocation varinat that accepts MDNode (with a default value).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89689
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 23 Nov 2009 18:43:37 +0000 (18:43 +0000)]
Revert r89487.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89686
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Mon, 23 Nov 2009 18:16:16 +0000 (18:16 +0000)]
Partially revert r89377 by removing NLdStLN class definition from
ARMInstrFormats.td and fixing VLD[234]LN* and VST[234]LN* to derive from NLdSt
instead of NLdStLN.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89684
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 18:12:11 +0000 (18:12 +0000)]
Move CopyCatchInfo into FunctionLoweringInfo.cpp too, for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89683
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 18:04:58 +0000 (18:04 +0000)]
Rename SelectionDAGLowering to SelectionDAGBuilder, and rename
SelectionDAGBuild.cpp to SelectionDAGBuilder.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89681
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Mon, 23 Nov 2009 17:48:17 +0000 (17:48 +0000)]
Make it clear that the index bit(s) of Vector Get Lane and Vector Set Lane
should be left unspecified now that Bob Wilson has fixed pr5470.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89676
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 17:46:23 +0000 (17:46 +0000)]
Move RegsForValue to an anonymous namespace, since it is only used
in this file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89675
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 17:42:46 +0000 (17:42 +0000)]
Move some more code out of SelectionDAGBuild.cpp and into
FunctionLoweringInfo.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89674
91177308-0d34-0410-b5e6-
96231b3b80d8
David Goodwin [Mon, 23 Nov 2009 17:34:12 +0000 (17:34 +0000)]
Minor itinerary fixes for FP instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89672
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 23 Nov 2009 17:26:04 +0000 (17:26 +0000)]
Update CMake file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89671
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 17:16:22 +0000 (17:16 +0000)]
Move the FunctionLoweringInfo class and some related utility functions out
of SelectionDAGBuild.h/cpp into its own files, to help separate
general lowering logic from SelectionDAG-specific lowering logic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89667
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Nov 2009 17:07:35 +0000 (17:07 +0000)]
fix comment, thanks all :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89666
91177308-0d34-0410-b5e6-
96231b3b80d8