oota-llvm.git
16 years ago- Somehow I forgot about one / une.
Evan Cheng [Tue, 14 Oct 2008 18:13:38 +0000 (18:13 +0000)]
- Somehow I forgot about one / une.
- Renumber fcmp predicates to match their icmp counterparts.
- Try swapping operands to expose more optimization opportunities.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57513 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix indentation.
Evan Cheng [Tue, 14 Oct 2008 17:15:39 +0000 (17:15 +0000)]
Fix indentation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57508 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoOptimize anding of two fcmp into a single fcmp if the operands are the same. e.g...
Evan Cheng [Tue, 14 Oct 2008 17:15:11 +0000 (17:15 +0000)]
Optimize anding of two fcmp into a single fcmp if the operands are the same. e.g. uno && ueq -> ueq
     ord && olt -> olt
     ord && ueq -> oeq

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57507 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoMention a few methods in ConstantSDNode that were renamed.
Dan Gohman [Tue, 14 Oct 2008 17:06:44 +0000 (17:06 +0000)]
Mention a few methods in ConstantSDNode that were renamed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57505 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoHTML syntax fixes.
Dan Gohman [Tue, 14 Oct 2008 17:00:38 +0000 (17:00 +0000)]
HTML syntax fixes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57503 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix missing end tags and invalid HTML entity syntax.
Dan Gohman [Tue, 14 Oct 2008 16:51:45 +0000 (16:51 +0000)]
Fix missing end tags and invalid HTML entity syntax.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57500 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd a missing close-tag.
Dan Gohman [Tue, 14 Oct 2008 16:32:04 +0000 (16:32 +0000)]
Add a missing close-tag.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57497 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix a few close tags.
Dan Gohman [Tue, 14 Oct 2008 16:23:02 +0000 (16:23 +0000)]
Fix a few close tags.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57496 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix a typo.
Dan Gohman [Tue, 14 Oct 2008 16:13:59 +0000 (16:13 +0000)]
Fix a typo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57495 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd a brief mention of the new free-list management code.
Dan Gohman [Tue, 14 Oct 2008 15:14:55 +0000 (15:14 +0000)]
Add a brief mention of the new free-list management code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57490 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agominor corrections, improved formatting
Gabor Greif [Tue, 14 Oct 2008 11:31:14 +0000 (11:31 +0000)]
minor corrections, improved formatting

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57486 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agotypo and formatting tweaks
Gabor Greif [Tue, 14 Oct 2008 11:00:32 +0000 (11:00 +0000)]
typo and formatting tweaks

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57485 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agolittle optimization: reuse getPointerToGlobalIfAvailable(CGV) value in emitGlobals()
Nuno Lopes [Tue, 14 Oct 2008 10:04:52 +0000 (10:04 +0000)]
little optimization: reuse getPointerToGlobalIfAvailable(CGV) value in emitGlobals()

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57484 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoMention the different constant folders that IRBuilder
Duncan Sands [Tue, 14 Oct 2008 07:06:37 +0000 (07:06 +0000)]
Mention the different constant folders that IRBuilder
can use.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57483 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agonew testcase for PR2797
Chris Lattner [Tue, 14 Oct 2008 06:56:04 +0000 (06:56 +0000)]
new testcase for PR2797

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57481 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoadd some upgrading notes from Pekka.
Chris Lattner [Tue, 14 Oct 2008 06:37:11 +0000 (06:37 +0000)]
add some upgrading notes from Pekka.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57480 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoadd LSR and frameaddress info.
Chris Lattner [Tue, 14 Oct 2008 06:02:29 +0000 (06:02 +0000)]
add LSR and frameaddress info.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57478 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd static analyzer notes.
Ted Kremenek [Tue, 14 Oct 2008 05:14:21 +0000 (05:14 +0000)]
Add static analyzer notes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57475 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRemove stale src, core directories.
Daniel Dunbar [Tue, 14 Oct 2008 03:56:55 +0000 (03:56 +0000)]
Remove stale src, core directories.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57473 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agomore minor updates
Chris Lattner [Tue, 14 Oct 2008 00:52:49 +0000 (00:52 +0000)]
more minor updates

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57472 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agomore changes.
Chris Lattner [Mon, 13 Oct 2008 22:06:31 +0000 (22:06 +0000)]
more changes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57470 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agooptimizer and codegen
Chris Lattner [Mon, 13 Oct 2008 21:50:36 +0000 (21:50 +0000)]
optimizer and codegen

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57468 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agomore updates.
Chris Lattner [Mon, 13 Oct 2008 20:59:32 +0000 (20:59 +0000)]
more updates.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57466 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoWhen doing the very-late shift-and address-mode optimization,
Dan Gohman [Mon, 13 Oct 2008 20:52:04 +0000 (20:52 +0000)]
When doing the very-late shift-and address-mode optimization,
create a new DAG node to represent the new shift to keep the
DAG consistent, even though it'll almost always be folded into
the address.

If a user of the resulting address has multiple uses, the
nodes may get revisited by a later MatchAddress call, in which
case DAG inconsistencies do matter.

This fixes PR2849.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57465 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agodescribe major new features and llvm-gcc features.
Chris Lattner [Mon, 13 Oct 2008 20:47:20 +0000 (20:47 +0000)]
describe major new features and llvm-gcc features.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57463 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoDon't barf on 32 bit platforms if llvm-gcc is
Duncan Sands [Mon, 13 Oct 2008 19:56:36 +0000 (19:56 +0000)]
Don't barf on 32 bit platforms if llvm-gcc is
not built with 64 bit support.  Since this test
passes without -m64 on x86-32-linux, just remove
the -m64.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57462 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFIX PR2794. Make sure SIGN_EXTEND_INREG nodes introduced by LegalizeSetCCOperands...
Evan Cheng [Mon, 13 Oct 2008 18:46:18 +0000 (18:46 +0000)]
FIX PR2794. Make sure SIGN_EXTEND_INREG nodes introduced by LegalizeSetCCOperands are leglized. Patch by Richard Pennington.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57460 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoMarkModRef -> AddReadAttrs.
Duncan Sands [Mon, 13 Oct 2008 18:42:43 +0000 (18:42 +0000)]
MarkModRef -> AddReadAttrs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57459 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAlso update sub-register intervals after a trivial computation is rematt'ed for a...
Evan Cheng [Mon, 13 Oct 2008 18:35:52 +0000 (18:35 +0000)]
Also update sub-register intervals after a trivial computation is rematt'ed for a copy instruction. PR2775.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57458 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd some llvm-gcc changes that may be worth
Duncan Sands [Mon, 13 Oct 2008 18:33:28 +0000 (18:33 +0000)]
Add some llvm-gcc changes that may be worth
detailing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57457 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd a test case for _Complex passed as a FCA.
Evan Cheng [Mon, 13 Oct 2008 18:13:07 +0000 (18:13 +0000)]
Add a test case for _Complex passed as a FCA.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57456 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agogive the static analyzer its own section.
Chris Lattner [Mon, 13 Oct 2008 18:11:54 +0000 (18:11 +0000)]
give the static analyzer its own section.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57455 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agomore rearranging.
Chris Lattner [Mon, 13 Oct 2008 18:01:01 +0000 (18:01 +0000)]
more rearranging.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57453 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agomove major changes down.
Chris Lattner [Mon, 13 Oct 2008 17:57:36 +0000 (17:57 +0000)]
move major changes down.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57452 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix typo. Add note on trampoline support.
Duncan Sands [Mon, 13 Oct 2008 17:32:15 +0000 (17:32 +0000)]
Fix typo.  Add note on trampoline support.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57450 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoClarify meaning of copyRegToReg's return value.
Evan Cheng [Mon, 13 Oct 2008 17:30:56 +0000 (17:30 +0000)]
Clarify meaning of copyRegToReg's return value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57449 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUpdate the Ada part.
Duncan Sands [Mon, 13 Oct 2008 17:27:23 +0000 (17:27 +0000)]
Update the Ada part.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57447 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofinal note.
Chris Lattner [Mon, 13 Oct 2008 17:12:51 +0000 (17:12 +0000)]
final note.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57446 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofix some crazily long lines.
Chris Lattner [Mon, 13 Oct 2008 16:55:18 +0000 (16:55 +0000)]
fix some crazily long lines.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57444 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoMake InstructionCombining::getBitCastOperand() recognize GEP instructions and
Matthijs Kooijman [Mon, 13 Oct 2008 15:17:01 +0000 (15:17 +0000)]
Make InstructionCombining::getBitCastOperand() recognize GEP instructions and
constant expression with all zero indices as being the same as a bitcast.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57442 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoImprove the description on the getelementptr instruction. It should now better
Matthijs Kooijman [Mon, 13 Oct 2008 13:44:15 +0000 (13:44 +0000)]
Improve the description on the getelementptr instruction. It should now better
define what the instruction does. This also makes it clear that getelementptr
can index into a vector type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57440 91177308-0d34-0410-b5e6-96231b3b80d8

16 years ago * Make TargetLowering not crash when TargetMachine::getTargetAsmInfo() returns
Matthijs Kooijman [Mon, 13 Oct 2008 12:41:46 +0000 (12:41 +0000)]
 * Make TargetLowering not crash when TargetMachine::getTargetAsmInfo() returns
   null. This assumes that any target that does not have AsmInfo, does not
   support "LocAndDot".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57438 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoMake MachineFunction not crash when TargetMachine::getRegisterInfo() returns
Matthijs Kooijman [Mon, 13 Oct 2008 12:37:16 +0000 (12:37 +0000)]
Make MachineFunction not crash when TargetMachine::getRegisterInfo() returns
NULL, but just hide some debug output then.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57437 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofix typo's
Gabor Greif [Mon, 13 Oct 2008 10:28:12 +0000 (10:28 +0000)]
fix typo's

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57435 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoremove a deprecated internal interface
Gabor Greif [Mon, 13 Oct 2008 10:25:27 +0000 (10:25 +0000)]
remove a deprecated internal interface

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57434 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agodo not use deprecated interfaces
Gabor Greif [Mon, 13 Oct 2008 10:21:17 +0000 (10:21 +0000)]
do not use deprecated interfaces

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57433 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoignore the standard output dirs
Gabor Greif [Mon, 13 Oct 2008 09:38:08 +0000 (09:38 +0000)]
ignore the standard output dirs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57432 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoDisallow the construction of SCEVs with could-not-compute operands. Catch CNCs
Nick Lewycky [Mon, 13 Oct 2008 03:58:02 +0000 (03:58 +0000)]
Disallow the construction of SCEVs with could-not-compute operands. Catch CNCs
returned by BinomialCoefficient and don't try to operate with them. This
replaces the previous fix for PR2857.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57431 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd whitespace before a parenthesis.
Mikhail Glushenkov [Mon, 13 Oct 2008 02:46:01 +0000 (02:46 +0000)]
Add whitespace before a parenthesis.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57430 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd a note on llvmc2 plugins + remove some trailing whitespace (my Emacs does this...
Mikhail Glushenkov [Mon, 13 Oct 2008 02:08:34 +0000 (02:08 +0000)]
Add a note on llvmc2 plugins + remove some trailing whitespace (my Emacs does this automatically).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57429 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agocalls can be supported.
Chris Lattner [Mon, 13 Oct 2008 01:59:13 +0000 (01:59 +0000)]
calls can be supported.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57428 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agomore notes
Chris Lattner [Sun, 12 Oct 2008 22:57:58 +0000 (22:57 +0000)]
more notes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57427 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoChange TAG_ names to DW_TAG for gcc (testsuite) compatibility.
Dale Johannesen [Sun, 12 Oct 2008 21:23:01 +0000 (21:23 +0000)]
Change TAG_ names to DW_TAG for gcc (testsuite) compatibility.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57425 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix a bug in live-in detection that caused lost-copy problems to show up.
Owen Anderson [Sun, 12 Oct 2008 20:39:30 +0000 (20:39 +0000)]
Fix a bug in live-in detection that caused lost-copy problems to show up.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57424 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoadd some more notes
Chris Lattner [Sun, 12 Oct 2008 19:47:48 +0000 (19:47 +0000)]
add some more notes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57423 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agothis was to be removed after 2.4 branched.
Chris Lattner [Sun, 12 Oct 2008 18:57:09 +0000 (18:57 +0000)]
this was to be removed after 2.4 branched.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57422 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRemove "long" variants so these will pass on a 64-bit host.
Dale Johannesen [Sun, 12 Oct 2008 18:40:49 +0000 (18:40 +0000)]
Remove "long" variants so these will pass on a 64-bit host.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57418 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoadd some notes
Chris Lattner [Sun, 12 Oct 2008 18:30:33 +0000 (18:30 +0000)]
add some notes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57416 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUpdate size of inst correctly with segment override.
Anton Korobeynikov [Sun, 12 Oct 2008 10:30:11 +0000 (10:30 +0000)]
Update size of inst correctly with segment override.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57414 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd special-case code to allow null-guards on calls to malloc.
Owen Anderson [Sun, 12 Oct 2008 08:10:46 +0000 (08:10 +0000)]
Add special-case code to allow null-guards on calls to malloc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57413 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoMake Escape Analysis work for any pointer.
Owen Anderson [Sun, 12 Oct 2008 07:33:29 +0000 (07:33 +0000)]
Make Escape Analysis work for any pointer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57412 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd EscapeAnalysis.
Owen Anderson [Sun, 12 Oct 2008 06:49:21 +0000 (06:49 +0000)]
Add EscapeAnalysis.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57411 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoChange Dwarf comments starting with AT_ to DW_AT_ to
Dale Johannesen [Sun, 12 Oct 2008 06:20:47 +0000 (06:20 +0000)]
Change Dwarf comments starting with AT_ to DW_AT_ to
match gcc.  Helps with the testsuite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57410 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix crashes and infinite loops.
Owen Anderson [Sun, 12 Oct 2008 06:03:38 +0000 (06:03 +0000)]
Fix crashes and infinite loops.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57408 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoDuncan convinced me that it's not possible to transform control-based escapes into
Owen Anderson [Sun, 12 Oct 2008 03:59:45 +0000 (03:59 +0000)]
Duncan convinced me that it's not possible to transform control-based escapes into
data-based ones.  Just be conservative when analyzing control-based escapes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57400 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofix typo
Chris Lattner [Sat, 11 Oct 2008 23:59:03 +0000 (23:59 +0000)]
fix typo

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57388 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix PR2697 by rewriting the '(X / pos) op neg' logic. This also changes
Chris Lattner [Sat, 11 Oct 2008 22:55:00 +0000 (22:55 +0000)]
Fix PR2697 by rewriting the '(X / pos) op neg' logic.  This also changes
a couple other cases for clarity, but shouldn't affect correctness.

Patch by Eli Friedman!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57387 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoupdate win32 project file, patch provided by OvermindDL1 on llvmdev.
Chris Lattner [Sat, 11 Oct 2008 22:14:59 +0000 (22:14 +0000)]
update win32 project file, patch provided by OvermindDL1 on llvmdev.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57386 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoChange CALLSEQ_BEGIN and CALLSEQ_END to take TargetConstant's as
Chris Lattner [Sat, 11 Oct 2008 22:08:30 +0000 (22:08 +0000)]
Change CALLSEQ_BEGIN and CALLSEQ_END to take TargetConstant's as
parameters instead of raw Constants.  This prevents the constants from
being selected by the isel pass, fixing PR2735.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57385 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agorearrange some code.
Chris Lattner [Sat, 11 Oct 2008 22:07:19 +0000 (22:07 +0000)]
rearrange some code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57384 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agorandom cleanup
Chris Lattner [Sat, 11 Oct 2008 22:06:50 +0000 (22:06 +0000)]
random cleanup

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57383 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd API changes which affected me to release notes:
Daniel Dunbar [Sat, 11 Oct 2008 21:26:56 +0000 (21:26 +0000)]
Add API changes which affected me to release notes:
 - DbgStopPointInst
 - Attributes (needs filling in)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57382 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix comment typo.
Duncan Sands [Sat, 11 Oct 2008 19:34:24 +0000 (19:34 +0000)]
Fix comment typo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57381 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd ability to override segment (mostly for code emitter purposes).
Anton Korobeynikov [Sat, 11 Oct 2008 19:09:15 +0000 (19:09 +0000)]
Add ability to override segment (mostly for code emitter purposes).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57380 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd GCC 4.1.2 from Debian to known bad GCC list.
Daniel Dunbar [Sat, 11 Oct 2008 18:40:33 +0000 (18:40 +0000)]
Add GCC 4.1.2 from Debian to known bad GCC list.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57379 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoNote EH stuff for x86-64/linux
Anton Korobeynikov [Sat, 11 Oct 2008 18:27:16 +0000 (18:27 +0000)]
Note EH stuff for x86-64/linux

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57378 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoWe do support PIC on x86-64/linux
Anton Korobeynikov [Sat, 11 Oct 2008 18:27:00 +0000 (18:27 +0000)]
We do support PIC on x86-64/linux

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57377 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoStrip out 2.3 info, make space for 2.4 info. I'd appreciate it if
Chris Lattner [Sat, 11 Oct 2008 18:18:28 +0000 (18:18 +0000)]
Strip out 2.3 info, make space for 2.4 info.  I'd appreciate it if
various component owners could look through and update their areas
in the known-problems section.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57376 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUnbreak DbgStopPointInst::getFileName().
Daniel Dunbar [Sat, 11 Oct 2008 06:40:56 +0000 (06:40 +0000)]
Unbreak DbgStopPointInst::getFileName().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57373 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agosimplify comparison
Chris Lattner [Sat, 11 Oct 2008 00:08:02 +0000 (00:08 +0000)]
simplify comparison

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57371 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix SSE4.1 roundss, roundsd. While the instructions have
Dale Johannesen [Fri, 10 Oct 2008 23:51:03 +0000 (23:51 +0000)]
Fix SSE4.1 roundss, roundsd.  While the instructions have
the same pattern as roundpd/roundps, the Intel compiler
builtins do not:  rounds* has an extra operand.  Fixes
gcc.target/i386/sse4_1-rounds[sd]-[1234].c

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57370 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoCheck loop exit predicate properly while eliminating one iteration loop.
Devang Patel [Fri, 10 Oct 2008 22:02:57 +0000 (22:02 +0000)]
Check loop exit predicate properly while eliminating one iteration loop.
This patch fixes PR 2869

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57369 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix a thinko and unbreak sparc default CC
Anton Korobeynikov [Fri, 10 Oct 2008 21:47:37 +0000 (21:47 +0000)]
Fix a thinko and unbreak sparc default CC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57368 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRemove some overzealous checks that were rejecting
Dale Johannesen [Fri, 10 Oct 2008 21:04:42 +0000 (21:04 +0000)]
Remove some overzealous checks that were rejecting
valid comments in inline assembly.
gcc.target/i386/20011009-1.c

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57365 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoExtend set of return registers on sparc until someone will implement MRV support...
Anton Korobeynikov [Fri, 10 Oct 2008 20:30:14 +0000 (20:30 +0000)]
Extend set of return registers on sparc until someone will implement MRV support there. At least, this will allow libgcc compile, however we are not ABI-compatible with stuff compiled with native gcc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57364 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoIgnore extra 'r' modifier for now
Anton Korobeynikov [Fri, 10 Oct 2008 20:29:50 +0000 (20:29 +0000)]
Ignore extra 'r' modifier for now

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57363 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUse expand for smul_lohi for now
Anton Korobeynikov [Fri, 10 Oct 2008 20:29:31 +0000 (20:29 +0000)]
Use expand for smul_lohi for now

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57362 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd testcase for 'r' inline asm operand
Anton Korobeynikov [Fri, 10 Oct 2008 20:28:59 +0000 (20:28 +0000)]
Add testcase for 'r' inline asm operand

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57361 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoThis does not fail anymore
Anton Korobeynikov [Fri, 10 Oct 2008 20:28:32 +0000 (20:28 +0000)]
This does not fail anymore

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57360 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd rudimentary support for 'r' register operand
Anton Korobeynikov [Fri, 10 Oct 2008 20:28:10 +0000 (20:28 +0000)]
Add rudimentary support for 'r' register operand

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57359 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoCleanup
Anton Korobeynikov [Fri, 10 Oct 2008 20:27:31 +0000 (20:27 +0000)]
Cleanup

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57358 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoCMake: updated lib/Analysis/CMakeLists.txt.
Oscar Fuentes [Fri, 10 Oct 2008 18:51:36 +0000 (18:51 +0000)]
CMake: updated lib/Analysis/CMakeLists.txt.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57357 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRevert r57340 move guard mutex in getPointerToFunction as this can cause
Mon P Wang [Fri, 10 Oct 2008 18:07:10 +0000 (18:07 +0000)]
Revert r57340 move guard mutex in getPointerToFunction as this can cause
deadlock issues with java

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57356 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix build failure.
Devang Patel [Fri, 10 Oct 2008 17:57:50 +0000 (17:57 +0000)]
Fix build failure.
Patch by Erick Tryzelaar.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57355 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofix memleak by cleaning the global sets on pass exit
Nuno Lopes [Fri, 10 Oct 2008 16:25:50 +0000 (16:25 +0000)]
fix memleak by cleaning the global sets on pass exit

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57353 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd sparc test for memory operand used in inline asm
Anton Korobeynikov [Fri, 10 Oct 2008 10:15:33 +0000 (10:15 +0000)]
Add sparc test for memory operand used in inline asm

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57348 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoThis is not failing anymore
Anton Korobeynikov [Fri, 10 Oct 2008 10:15:18 +0000 (10:15 +0000)]
This is not failing anymore

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57347 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd rudimentary asmprinter support for printing inline asm operands for sparc.
Anton Korobeynikov [Fri, 10 Oct 2008 10:15:03 +0000 (10:15 +0000)]
Add rudimentary asmprinter support for printing inline asm operands for sparc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57346 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd dummy 'm' inline asm constraint handler for Sparc. I'm not sure, whether it is...
Anton Korobeynikov [Fri, 10 Oct 2008 10:14:47 +0000 (10:14 +0000)]
Add dummy 'm' inline asm constraint handler for Sparc. I'm not sure, whether it is correct, however :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57345 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoCleanup
Anton Korobeynikov [Fri, 10 Oct 2008 10:14:15 +0000 (10:14 +0000)]
Cleanup

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57344 91177308-0d34-0410-b5e6-96231b3b80d8