Chris Lattner
30341209de
fix PR4815: some cases where DeleteDeadInstruction can delete
...
the instruction BBI points to.
llvm-svn: 80768
2009-09-02 06:31:02 +00:00
Chris Lattner
2cdeb25274
clean up this code a bit.
...
llvm-svn: 80767
2009-09-02 06:15:37 +00:00
Chris Lattner
5f54c5bd1c
eliminate VISIBILITY_HIDDEN from Transforms/Scalar. PR4861
...
llvm-svn: 80766
2009-09-02 06:11:42 +00:00
Chris Lattner
52279dbf17
refactor select 'sched insertion' out to its own method.
...
llvm-svn: 80764
2009-09-02 05:57:00 +00:00
Chris Lattner
c66a43e2b0
Add support for modeling whether or not the processor has support for
...
conditional moves as a subtarget feature. This is the easy part of
PR4841.
llvm-svn: 80763
2009-09-02 05:53:04 +00:00
Chris Lattner
1f08c79edc
fix PR4848 an infinite loop when indexing down through a recursive gep
...
and we get the original pointer type. This doesn't mean that we're
at the first pointer being indexed. Correct the predicate.
llvm-svn: 80762
2009-09-02 05:35:45 +00:00
Chris Lattner
8bb351e2c2
fix PR4837, some bugs folding vector compares. These
...
return a vector of i1, not i1 itself.
llvm-svn: 80761
2009-09-02 05:12:37 +00:00
Chris Lattner
140720ab83
revert my patch, duncan points out what is wrong with my logic. Add
...
a comment so that I don't change this in the future :)
llvm-svn: 80760
2009-09-02 04:39:04 +00:00
Chris Lattner
e1637fa3f6
one more try at making this simpler, hopefully it won't break everything :)
...
llvm-svn: 80759
2009-09-02 04:34:06 +00:00
Duncan Sands
b970a46d06
Complicate Chris's simplification, avoiding complaints
...
about singular iterators when building with expensive
checks turned on.
llvm-svn: 80757
2009-09-02 03:48:41 +00:00
Daniel Dunbar
3b7954c9bf
Don't force the triple or data layout in this test. We just have to get them
...
from the host and hope that works.
llvm-svn: 80751
2009-09-02 02:43:11 +00:00
Dan Gohman
076277763d
Add a comment.
...
llvm-svn: 80749
2009-09-02 01:14:16 +00:00
Sean Callanan
8dfa4a30bf
Fixed the asmstrings for 8-bit, 16-bit, and 32-bit ADD %rAX, imm instructions.
...
Added a 64-bit ADD %RAX, imm32 instruction.
Added all 4 forms for AND %rAX, imm and CMP %rAX, imm.
llvm-svn: 80746
2009-09-02 00:55:49 +00:00
Evan Cheng
24b0f4a60e
Fix PR4845: r77946 completely broke x86_64 Darwin (or any situation where the
...
desired triplet is a sub-target, e.g. thumbv7 vs. arm host). Reverting the
patch isn't quite right either since the previous behavior does not allow the
triplet to be overridden with -march.
llvm-svn: 80742
2009-09-02 00:19:03 +00:00
Devang Patel
2a64f7b891
Disable uniqueness test for now.
...
llvm-svn: 80741
2009-09-02 00:16:33 +00:00
Devang Patel
2d78fddeb4
For now disable MDNode uniquing. This fixes llvm-gcc bootstrap failure on certain Mac OS X 10.5. I am working on a proper fix.
...
llvm-svn: 80738
2009-09-01 23:56:42 +00:00
Bob Wilson
e267a54022
Avoid calling removeVirtualRegisterKilled which iterates over the operands
...
to find the kill, since we already have the operand.
llvm-svn: 80736
2009-09-01 23:18:46 +00:00
Bob Wilson
4a9a3d96b5
Refactor some code into separate functions. No functional changes.
...
llvm-svn: 80733
2009-09-01 22:51:08 +00:00
Bob Wilson
626e983eed
Move use of LV inside condition that guards for null LV.
...
llvm-svn: 80731
2009-09-01 22:19:00 +00:00
Daniel Dunbar
ed881c3427
Fix build warning.
...
llvm-svn: 80730
2009-09-01 22:07:12 +00:00
Daniel Dunbar
9dbf59e5cd
Simplify.
...
llvm-svn: 80729
2009-09-01 22:07:06 +00:00
Daniel Dunbar
d69c90cc3e
Fix what I believe is a copy-n-pasto introduced in r78129.
...
- Bruno, please check!!
llvm-svn: 80728
2009-09-01 22:07:00 +00:00
Daniel Dunbar
3f9481f8cf
X86/Encoding: Support ExternalSymbol operands in emitDisplacementField (for consistency).
...
llvm-svn: 80727
2009-09-01 22:06:53 +00:00
Daniel Dunbar
9872eb764c
Remove Offset from ExternalSybmol MachineOperands, this is unused (and at least partly unsupported, in X86 encoding at least).
...
llvm-svn: 80726
2009-09-01 22:06:46 +00:00
Chris Lattner
7db43e1b57
debug intrinsics do not go in the callgraph, this fixes a couple
...
clang regtest failures.
llvm-svn: 80724
2009-09-01 21:37:50 +00:00
Chris Lattner
dd05e763cc
Fix a regression I introduced in r80708, found by llvm-test.
...
llvm-svn: 80718
2009-09-01 20:33:43 +00:00
Bruno Cardoso Lopes
f0ff8b695a
Fix ELF Writter related memory leaks
...
llvm-svn: 80717
2009-09-01 19:25:52 +00:00
Andreas Neustifter
92a4f4d8d3
OptimalEdgeProfiling: Reading in Profiles.
...
This enables LLVM to read the OptimalEdgeProfiles.
llvm-svn: 80715
2009-09-01 19:08:51 +00:00
Andreas Neustifter
2ca69d2a41
Addedum to r80712, forgot to add files.
...
llvm-svn: 80713
2009-09-01 19:05:58 +00:00
Andreas Neustifter
683bc5306c
OptimalEdgeProfiling: Creation of profiles.
...
This adds the instrumentation and runtime part of OptimalEdgeProfiling.
llvm-svn: 80712
2009-09-01 19:03:44 +00:00
Andreas Neustifter
4ee437055b
Small fix in ProfileEstimator that eliminates duplicated code.
...
llvm-svn: 80711
2009-09-01 19:01:59 +00:00
Jim Grosbach
d0f70494f5
reduce size of SmallString to something more reasonable
...
llvm-svn: 80710
2009-09-01 18:55:08 +00:00
Chris Lattner
ccbb87c998
remove CallGraphNode::replaceCallSite, it is redundant with other APIs.
...
llvm-svn: 80708
2009-09-01 18:52:39 +00:00
Bob Wilson
6972a16bbc
Add support for generating code for vst{234}lane intrinsics.
...
llvm-svn: 80707
2009-09-01 18:51:56 +00:00
Chris Lattner
3d920b6bee
cleanup/simplify
...
llvm-svn: 80706
2009-09-01 18:50:55 +00:00
Bob Wilson
75b2b04e1e
Fix incorrect declarations of intrinsics in this test.
...
llvm-svn: 80705
2009-09-01 18:50:43 +00:00
Jim Grosbach
38fc5b0277
Use raw_ostream instead of sstream
...
llvm-svn: 80704
2009-09-01 18:49:12 +00:00
Chris Lattner
e4173b39bd
remove a bunch of explicit code previously needed to update the
...
callgraph. This is now dead because RAUW does the job.
llvm-svn: 80703
2009-09-01 18:44:06 +00:00
David Goodwin
1b286bc320
Add hidden flags to allow binary search of post-RA scheduling errors.
...
llvm-svn: 80702
2009-09-01 18:34:03 +00:00
David Goodwin
70557af33a
RRX reads CPSR.
...
llvm-svn: 80699
2009-09-01 18:32:09 +00:00
Chris Lattner
23bedf2b9b
doxygenate RefreshCallGraph, add a new 'verification mode', and run it after
...
CGSCC passes make change to ensure they are updating the callgraph correctly
(when assertions are enabled).
llvm-svn: 80698
2009-09-01 18:32:03 +00:00
Dan Gohman
f6fbd474ed
Fix a typo in a comment.
...
llvm-svn: 80697
2009-09-01 18:29:01 +00:00
Sean Callanan
18ae1d3c8d
Added TEST %rAX, $imm instructions to the Intel tables. These are required for the X86 disassembler.
...
llvm-svn: 80696
2009-09-01 18:14:18 +00:00
Chris Lattner
341df26dd9
simpler solution to iterator invalidation "problem" found
...
by expensive checking.
llvm-svn: 80695
2009-09-01 18:13:40 +00:00
Chris Lattner
2c2c37b2b1
enhance memcpy opt to turn memmoves into memcpy when the src/dest
...
don't alias. Remove an old and poorly reduced testcase that fails
with this transform for reasons unrelated to the original test.
llvm-svn: 80693
2009-09-01 17:56:32 +00:00
Bruno Cardoso Lopes
fdf1a0718e
Reapply 80278
...
Add MO flags to simplify the printing of relocations.
Remove the support for printing large code model relocs (which
aren't supported anyway).
llvm-svn: 80691
2009-09-01 17:27:58 +00:00
Jim Grosbach
7c2ffde625
revert inadvertant change from previous commit
...
llvm-svn: 80689
2009-09-01 17:19:13 +00:00
Chris Lattner
87baaffbd2
random code cleanups, no functionality change.
...
llvm-svn: 80682
2009-09-01 17:09:55 +00:00
Ted Kremenek
8d7530f61e
Update CMake files.
...
llvm-svn: 80680
2009-09-01 17:01:02 +00:00
Jim Grosbach
ecd541affd
Simply LSDA lable emission to use a direct special-case output instead of
...
EmitLabel()
llvm-svn: 80677
2009-09-01 16:43:35 +00:00