Nate Begeman [Fri, 25 Jul 2008 17:56:27 +0000 (17:56 +0000)]
Remove unnecessary implicit argument
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54031
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Fri, 25 Jul 2008 17:35:37 +0000 (17:35 +0000)]
Fix minor issues with VICmp/VFCmp constant expressions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54030
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Fri, 25 Jul 2008 17:34:41 +0000 (17:34 +0000)]
Fit in 80 cols
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54029
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Fri, 25 Jul 2008 17:28:23 +0000 (17:28 +0000)]
Allow verifier to be run on partially materialized modules.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54028
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Fri, 25 Jul 2008 17:26:48 +0000 (17:26 +0000)]
Add predicate for GhostLinkage, used by the JIT
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54027
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Fri, 25 Jul 2008 17:25:04 +0000 (17:25 +0000)]
Remove dead PatLeaf; there are a number of issues around MMX movl that need to be fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54026
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Fri, 25 Jul 2008 17:24:13 +0000 (17:24 +0000)]
Tab removal
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54025
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 25 Jul 2008 15:39:12 +0000 (15:39 +0000)]
Add a #include for the uses of uint64_t.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54016
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 25 Jul 2008 15:25:32 +0000 (15:25 +0000)]
This test needs -aggressive-remat enabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54015
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 25 Jul 2008 15:08:37 +0000 (15:08 +0000)]
Disable the new aggressive remat logic introduced in 54000; it causes some
regressions, such as PR2595. Also, there is a significant code-quality
issue in SPEC 464.h264ref and a few others.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54014
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Fri, 25 Jul 2008 01:30:26 +0000 (01:30 +0000)]
When splitting a vector shuffle, fixed which type we used for the hi part
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54007
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 25 Jul 2008 00:55:17 +0000 (00:55 +0000)]
Teach ARM isLegalAddressingMode to handle unknown type without crashing. This fixes pr2589.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54004
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 25 Jul 2008 00:44:19 +0000 (00:44 +0000)]
Add a #include <cassert>, since this file use assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54003
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 25 Jul 2008 00:36:05 +0000 (00:36 +0000)]
Apply a patch from Mahadevan R, with minor formatting changes, to
workaround a GCC 3.3 bug observed on OpenBSD.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54002
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 25 Jul 2008 00:04:14 +0000 (00:04 +0000)]
Use AliasAnalysis::pointsToConstantMemory in SDISel to avoid unnecessary
dependencies with constant load nodes. This allows them to be scheduled
freely.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54001
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 25 Jul 2008 00:02:30 +0000 (00:02 +0000)]
Enable rematerialization of constants using AliasAnalysis::pointsToConstantMemory,
and knowledge of PseudoSourceValues. This unfortunately isn't sufficient to allow
constants to be rematerialized in PIC mode -- the extra indirection is a
complication.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54000
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 24 Jul 2008 23:57:25 +0000 (23:57 +0000)]
Put the LICM of constant GlobalVariables, introduced in r53945, under a
command-line option, and disable it by default. It introduced performance
regressions because CodeGen is currently not able to remat such loads.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53997
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 24 Jul 2008 18:08:01 +0000 (18:08 +0000)]
Add target triples so these tests behave as expected on non-darwin hosts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53991
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 24 Jul 2008 17:57:48 +0000 (17:57 +0000)]
Avoid emitting casts in static initializer contexts. This fixes
large numbers of CBE regressions caused by r53958.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53990
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 24 Jul 2008 17:12:16 +0000 (17:12 +0000)]
Store the predecessor MBB in the PHIUnion, rather than an index, since the indices will change after renumbering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53985
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 24 Jul 2008 08:17:07 +0000 (08:17 +0000)]
Fix a catastrophic PPC64 ABI bug: i32 operands which are passed in memory (all of the parameter registers are used) are loaded from sp offsets that were off by 4.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53979
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 24 Jul 2008 00:35:38 +0000 (00:35 +0000)]
Create temp. file in current path.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53973
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 24 Jul 2008 00:34:11 +0000 (00:34 +0000)]
Identify llvm bit-code file that is causing linking failure in LTO mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53972
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 24 Jul 2008 00:22:05 +0000 (00:22 +0000)]
New test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53971
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 24 Jul 2008 00:08:56 +0000 (00:08 +0000)]
Rename instance variables, parameter argument names to eliminate a bunch of compilation warnings with -Wshadow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53970
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 23 Jul 2008 21:37:49 +0000 (21:37 +0000)]
Enable the insertion of empty indices into LiveInterals, thereby making renumbering possible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53961
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 23 Jul 2008 19:47:27 +0000 (19:47 +0000)]
Fix a compile-time regression introduced by my heuristic-changing patch. I forgot
to multiply the instruction count by a constant factor in a few places, which
caused the register allocator to require many more iterations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53959
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 23 Jul 2008 18:41:03 +0000 (18:41 +0000)]
Use C99 aggregate literal syntax for first-class struct and array values.
This fixes several recent CBE regressions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53958
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 23 Jul 2008 16:01:50 +0000 (16:01 +0000)]
Minor fixes.
Added ConstantPool support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53951
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Jul 2008 06:58:10 +0000 (06:58 +0000)]
Make CreateBinOp/CreateNeg/CreateNot do constant folding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53950
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Jul 2008 05:06:28 +0000 (05:06 +0000)]
"Allow LICM to sink or lift loads from constant memory. Also add a test
case for this.
This allows instructions like loads from global variables declared to
be constant to be moved out of loops."
Patch by Stefanus Du Toit!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53945
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Jul 2008 04:49:20 +0000 (04:49 +0000)]
'Previously, the emacs tablegen mode would highlight constants even if
they appear in words. This would cause things like the "128" in "VR128"
to be highlighted. This patch fixes the highlighting by only recognizing
constants when they have word breaks around them.'
Patch by Stefanus Du Toit!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53944
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 23 Jul 2008 00:54:54 +0000 (00:54 +0000)]
Update the generated .cvs files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53943
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 23 Jul 2008 00:34:11 +0000 (00:34 +0000)]
Enable first-class aggregates support.
Remove the GetResultInst instruction. It is still accepted in LLVM assembly
and bitcode, where it is now auto-upgraded to ExtractValueInst. Also, remove
support for return instructions with multiple values. These are auto-upgraded
to use InsertValueInst instructions.
The IRBuilder still accepts multiple-value returns, and auto-upgrades them
to InsertValueInst instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53941
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 23 Jul 2008 00:22:17 +0000 (00:22 +0000)]
Fix PR2485: do all 4-element SSE shuffles in max. of 2 shuffle instructions.
Based on patch by Nicolas Capens.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53939
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 22 Jul 2008 23:54:03 +0000 (23:54 +0000)]
LegalizeTypes support for VSETCC. Fixes PR2575.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53938
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 22 Jul 2008 22:46:49 +0000 (22:46 +0000)]
Change the heuristics used in the coalescer, register allocator, and within
live intervals itself to use an instruction count approximation that is
not affected by inserting empty indices.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53937
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 22 Jul 2008 22:20:18 +0000 (22:20 +0000)]
Quit early, if unable to reproduce error using original input files.
Quit, if unable to fix error when linker input files are all native object files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53935
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 22 Jul 2008 21:13:36 +0000 (21:13 +0000)]
Factor out SSE 4 wide shuffle lowering code into its own function. No functionality changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53933
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 22 Jul 2008 20:42:56 +0000 (20:42 +0000)]
Fix pr2566: incorrect assumption about bit_convert. It doesn't not have to output a vector value. Patch by Nicolas Capens!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53932
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 22 Jul 2008 20:19:25 +0000 (20:19 +0000)]
Add insertvalue and extractvalue folding support in IRBuilder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53931
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 22 Jul 2008 20:03:45 +0000 (20:03 +0000)]
Remove temp. files in the end.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53930
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 22 Jul 2008 20:02:39 +0000 (20:02 +0000)]
While creating temp. file on disk, if the current filename points to a existing directory then create new temp. file inside the directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53929
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 22 Jul 2008 18:39:19 +0000 (18:39 +0000)]
Fix PR2574: implement v2f32 scalar_to_vector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53927
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 22 Jul 2008 18:25:25 +0000 (18:25 +0000)]
IRBuilder support for insertvalue and extractvalue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53926
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 22 Jul 2008 18:04:23 +0000 (18:04 +0000)]
Assert that the DAG root value is a chain value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53925
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 22 Jul 2008 18:00:36 +0000 (18:00 +0000)]
Handle bitcode wrappers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53924
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 22 Jul 2008 17:52:59 +0000 (17:52 +0000)]
Make the GraphRoot edge look like a chain edge, which is more accurate,
and use the right result number, in the off chance that the graph root
has multiple result values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53923
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 22 Jul 2008 17:09:59 +0000 (17:09 +0000)]
Provide default implementation of different small-sections related stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53920
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 22 Jul 2008 17:09:41 +0000 (17:09 +0000)]
Tie small stuff to non-small by default on ELF platforms
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53919
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Tue, 22 Jul 2008 16:24:21 +0000 (16:24 +0000)]
simplified small section logic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53912
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 22 Jul 2008 16:22:48 +0000 (16:22 +0000)]
Fix encoding of atomic compare and swap for i64
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53911
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Tue, 22 Jul 2008 15:34:27 +0000 (15:34 +0000)]
Added small section asm emition logic for mips.
Fixed small bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53908
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Tue, 22 Jul 2008 15:26:53 +0000 (15:26 +0000)]
Basic support for small sections
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53907
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 22 Jul 2008 09:08:05 +0000 (09:08 +0000)]
Remove more tabs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53905
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 22 Jul 2008 08:54:38 +0000 (08:54 +0000)]
Remove another tab.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53904
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 22 Jul 2008 08:50:44 +0000 (08:50 +0000)]
More tab removals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53903
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 22 Jul 2008 07:14:12 +0000 (07:14 +0000)]
Removing tabs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53902
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 22 Jul 2008 06:46:17 +0000 (06:46 +0000)]
Use — because.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53901
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 22 Jul 2008 01:37:48 +0000 (01:37 +0000)]
Remove references to llvm-gcc-4.0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53900
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 22 Jul 2008 01:10:25 +0000 (01:10 +0000)]
Fix grammar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53898
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 22 Jul 2008 00:53:37 +0000 (00:53 +0000)]
Another buildbot test commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53896
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 22 Jul 2008 00:52:54 +0000 (00:52 +0000)]
Correct the name of MachineMemOperand's include guard.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53895
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 22 Jul 2008 00:52:04 +0000 (00:52 +0000)]
Fix a typo in a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53894
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 22 Jul 2008 00:36:48 +0000 (00:36 +0000)]
Fix multiple-return-value-to-first-class-aggregates autoupgrade to
correctly handle the case where multiple-return-value constructs
were used to return one or zero values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53890
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 22 Jul 2008 00:28:47 +0000 (00:28 +0000)]
Trivial check-in to test buildbot. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53889
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 21 Jul 2008 23:30:30 +0000 (23:30 +0000)]
InsertValue and ExtractValue constant expressions are always
folded. Remove code that handled the case where they aren't
folded, and remove bitcode reader/writer support for them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53887
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 21 Jul 2008 23:04:39 +0000 (23:04 +0000)]
Provide llvm bitcode file to native object file interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53886
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 21 Jul 2008 22:38:59 +0000 (22:38 +0000)]
Fix grammaros in comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53884
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 21 Jul 2008 21:50:25 +0000 (21:50 +0000)]
Add the PR number to the test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53880
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 21 Jul 2008 21:45:02 +0000 (21:45 +0000)]
Fix a bug in LSR's dead-PHI cleanup. If a PHI has a def-use chain that
leads into a cycle involving a different PHI, LSR got stuck running
around that cycle looking for the original PHI. To avoid this, keep
track of visited PHIs and stop searching if we see one more than once.
This fixes PR2570.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53879
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 21 Jul 2008 21:06:55 +0000 (21:06 +0000)]
Enhance the GraphWriter support for edge destinations, and teach the
SelectionDAG graph writer to make use of them. Now, nodes with multiple
values are displayed as such, with incoming edges pointing to the
specific value they use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53875
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 21 Jul 2008 21:04:07 +0000 (21:04 +0000)]
After early-lowering the FORMAL_ARGUMENTS node, delete it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53874
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 21 Jul 2008 20:02:45 +0000 (20:02 +0000)]
Eliminate a compilation warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53873
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 21 Jul 2008 20:00:07 +0000 (20:00 +0000)]
Add titles to the various SelectionDAG viewGraph calls
that include useful information like the name of the
block being viewed and the current phase of compilation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53872
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 21 Jul 2008 19:57:57 +0000 (19:57 +0000)]
Make the GraphWriter be more consistent about the string
used for the graph "title" and the graph "label", as there
are differences in interpretation of these strings
between viewers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53871
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 21 Jul 2008 19:48:15 +0000 (19:48 +0000)]
Fix uses of underscore-capital names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53870
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Mon, 21 Jul 2008 18:52:34 +0000 (18:52 +0000)]
Added initial support for small sections on Mips.
Added gp_rel relocations to support addressing small section contents.
Added command line to specify small section threshold in bytes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53869
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 21 Jul 2008 18:47:29 +0000 (18:47 +0000)]
Now that the MachineInstr leaks are fixed, enable leak checking
in the MachineInstr clone code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53868
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 21 Jul 2008 18:33:09 +0000 (18:33 +0000)]
Temporary hack to build with GCC 4.0 instead of 4.2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53860
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Mon, 21 Jul 2008 18:29:23 +0000 (18:29 +0000)]
Use better variable names
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53859
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Mon, 21 Jul 2008 18:25:17 +0000 (18:25 +0000)]
Don't use larger alignment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53857
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 21 Jul 2008 10:20:31 +0000 (10:20 +0000)]
Add VerifyNode, a place to put sanity checks on
generic SDNode's (nodes with their own constructors
should do sanity checking in the constructor). Add
sanity checks for BUILD_VECTOR and fix all the places
that were producing bogus BUILD_VECTORs, as found by
"make check". My favorite is the BUILD_VECTOR with
only two operands that was being used to build a
vector with four elements!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53850
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 21 Jul 2008 06:34:17 +0000 (06:34 +0000)]
Use movaps instead of movups to spill 16-byte vector values when default alignment is >= 16. This fixes some massive performance regressions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53844
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 21 Jul 2008 04:03:00 +0000 (04:03 +0000)]
Revert r53812 -- premature. LegalizeTypes isn't actually on yet!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53816
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 21 Jul 2008 02:51:31 +0000 (02:51 +0000)]
Switch on the use of arbitrary precision integers in scalar evolution. This will
bail after 256-bits to avoid producing code that the backends can't handle.
Previously, we capped it at 64-bits, preferring to miscompile in those cases.
This change also reverts much of r52248 because the invariants the code was
expecting are now being met.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53812
91177308-0d34-0410-b5e6-
96231b3b80d8
Wojciech Matyjewicz [Sun, 20 Jul 2008 17:35:32 +0000 (17:35 +0000)]
This header isn't necessary now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53811
91177308-0d34-0410-b5e6-
96231b3b80d8
Wojciech Matyjewicz [Sun, 20 Jul 2008 15:55:14 +0000 (15:55 +0000)]
Fix PR2088. Use modulo linear equation solver to compute loop iteration
count.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53810
91177308-0d34-0410-b5e6-
96231b3b80d8
Cedric Venet [Sun, 20 Jul 2008 12:04:49 +0000 (12:04 +0000)]
Updated VC++ projects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53809
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sun, 20 Jul 2008 02:32:23 +0000 (02:32 +0000)]
Fix for first part of PR2562. Generate the "pinsrw" instruction for inserts
into v4i16 vectors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53807
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sun, 20 Jul 2008 00:11:19 +0000 (00:11 +0000)]
Pull r53795 from Gaz into mainline:
If .loc and .file aren't used, always emit the "debug_line" section. This
requires at least one entry in the line matrix. So if there's nothing to emit
into the matrix, emit an end of matrix value anyway.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53803
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sat, 19 Jul 2008 21:44:57 +0000 (21:44 +0000)]
Unbreak build: 'DarwinTargetAsmInfo' was already taken as PPC TAI flavour.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53801
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Sat, 19 Jul 2008 16:26:02 +0000 (16:26 +0000)]
Make sure custom lowering for LegalizeTypes
returns a node with the right number of
return values. This fixes codegen of
Generic/cast-fp.ll, Generic/fp_to_int.ll
and PowerPC/multiple-return-values.ll
when using -march=ppc32 -mattr=+64bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53794
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sat, 19 Jul 2008 15:52:06 +0000 (15:52 +0000)]
XFAIL this test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53793
91177308-0d34-0410-b5e6-
96231b3b80d8
Wojciech Matyjewicz [Sat, 19 Jul 2008 13:26:15 +0000 (13:26 +0000)]
While testing particular algorithms to compute loop iteration count the brute
force evaluation (ComputeIterationCountExhaustively) should be turned off.
It doesn't apply to trip-count2.ll because this file tests the brute force
evaluation.
The test for PR2364 (2008-05-25-NegativeStepToZero.ll) currently fails
showing that the patch for this bug doesn't work. I'll fix it in a few hours
with a patch for PR2088.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53792
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sat, 19 Jul 2008 13:16:32 +0000 (13:16 +0000)]
Use chars, where possible
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53791
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sat, 19 Jul 2008 13:16:11 +0000 (13:16 +0000)]
Switch MIPS to new ELFTargetAsmInfo. Add few FIXMEs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53790
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sat, 19 Jul 2008 13:15:46 +0000 (13:15 +0000)]
Fix a FIXME :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53789
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sat, 19 Jul 2008 13:15:21 +0000 (13:15 +0000)]
Use generic ELFTargetAsmInfo and DarwinTargetAsmInfo for X86 code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53788
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sat, 19 Jul 2008 13:14:46 +0000 (13:14 +0000)]
Add TargetAsmInfo stuff for all darwin-based targets
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53787
91177308-0d34-0410-b5e6-
96231b3b80d8