oota-llvm.git
15 years agoAdded NLdStLN which is similar to NLdSt with the exception that op7_4 is not
Johnny Chen [Thu, 19 Nov 2009 19:20:17 +0000 (19:20 +0000)]
Added NLdStLN which is similar to NLdSt with the exception that op7_4 is not
fully specified at this level.  Subclasses of NLdStLN can specify selective
bit(s) for Inst{7-4}, as is done for VLD[234]LN* and VST[234]LN* inside
ARMInstrNEON.td.

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

15 years agoFix a small bug.
David Greene [Thu, 19 Nov 2009 19:09:39 +0000 (19:09 +0000)]
Fix a small bug.

Fix one case we missed to make sure we reserve registers from
allocation.

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

15 years agoEnable hoisting of loads from constant memory by default. In cases where
Dan Gohman [Thu, 19 Nov 2009 19:00:10 +0000 (19:00 +0000)]
Enable hoisting of loads from constant memory by default. In cases where
they are lowered to instruction sequences more complex than a simple
load, such that CodeGen cannot rematerialize them, a reload from a
spill slot is likely to be cheaper than the complex sequence.

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

15 years agoUse StringRef::min instead of std::min.
Daniel Dunbar [Thu, 19 Nov 2009 18:53:18 +0000 (18:53 +0000)]
Use StringRef::min instead of std::min.

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

15 years agofix typo
Jim Grosbach [Thu, 19 Nov 2009 18:23:19 +0000 (18:23 +0000)]
fix typo

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

15 years agoTableGen/OptParser: When ordering options, make "sentinel" options appear before
Daniel Dunbar [Thu, 19 Nov 2009 18:22:16 +0000 (18:22 +0000)]
TableGen/OptParser: When ordering options, make "sentinel" options appear before
everything else.

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

15 years agoTrailing whitespace.
Mikhail Glushenkov [Thu, 19 Nov 2009 17:29:36 +0000 (17:29 +0000)]
Trailing whitespace.

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

15 years agoMake example/Hello compile again.
Mikhail Glushenkov [Thu, 19 Nov 2009 17:29:25 +0000 (17:29 +0000)]
Make example/Hello compile again.

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

15 years agoFix a typo in a comment.
Dan Gohman [Thu, 19 Nov 2009 16:35:11 +0000 (16:35 +0000)]
Fix a typo in a comment.

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

15 years agocstdlib is not automatically included with StringRef anymore.
Benjamin Kramer [Thu, 19 Nov 2009 16:08:04 +0000 (16:08 +0000)]
cstdlib is not automatically included with StringRef anymore.

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

15 years agoReenable Split2 StringRef test with Apple gcc.
Benjamin Kramer [Thu, 19 Nov 2009 16:04:41 +0000 (16:04 +0000)]
Reenable Split2 StringRef test with Apple gcc.

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

15 years agoAdd support for spreading register allocation.
David Greene [Thu, 19 Nov 2009 15:55:49 +0000 (15:55 +0000)]
Add support for spreading register allocation.

Add a -linearscan-skip-count argument (default to 0) that tells the
allocator to remember the last N registers it allocated and skip them
when looking for a register candidate.  This tends to spread out
register usage and free up post-allocation scheduling at the cost of
slightly more register pressure.  The primary benefit is the ability
to backschedule reloads.

This is turned off by default.

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

15 years agoRemove the now obsolete algorithm include from StringRef.h.
Benjamin Kramer [Thu, 19 Nov 2009 15:48:14 +0000 (15:48 +0000)]
Remove the now obsolete algorithm include from StringRef.h.

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

15 years agoWorkaround PR5482, because all the gcc versions that I had were miscompiling StringRef:
Torok Edwin [Thu, 19 Nov 2009 15:39:50 +0000 (15:39 +0000)]
Workaround PR5482, because all the gcc versions that I had were miscompiling StringRef:
4.2.4, 4.3.4, 4.4.2.
The workaround is to use a local min/max implementation that takes an integer
param, and not a reference to integer param (like std::min does).

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

15 years agoUnbreak x64 MSVC build. Patch by Nicolas Capens!
Benjamin Kramer [Thu, 19 Nov 2009 12:17:31 +0000 (12:17 +0000)]
Unbreak x64 MSVC build. Patch by Nicolas Capens!

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

15 years agoAdd PS3 Triple class, Credit to John Thompson.
Edward O'Callaghan [Thu, 19 Nov 2009 11:59:00 +0000 (11:59 +0000)]
Add PS3 Triple class, Credit to John Thompson.

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

15 years ago80 col violation.
Evan Cheng [Thu, 19 Nov 2009 08:16:50 +0000 (08:16 +0000)]
80 col violation.

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

15 years agoUnbreak test, Bruno please check.
Daniel Dunbar [Thu, 19 Nov 2009 07:18:49 +0000 (07:18 +0000)]
Unbreak test, Bruno please check.

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

15 years agoMore consistent thumb1 asm printing.
Evan Cheng [Thu, 19 Nov 2009 06:57:41 +0000 (06:57 +0000)]
More consistent thumb1 asm printing.

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

15 years agoShrink ldr / str [sp, imm0-1024] to 16-bit instructions.
Evan Cheng [Thu, 19 Nov 2009 06:32:27 +0000 (06:32 +0000)]
Shrink ldr / str [sp, imm0-1024] to 16-bit instructions.

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

15 years agoEliminate more * 4 in Thumb1 asm printing for consistency sake.
Evan Cheng [Thu, 19 Nov 2009 06:31:26 +0000 (06:31 +0000)]
Eliminate more * 4 in Thumb1 asm printing for consistency sake.

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

15 years ago- Add sugregister logic to handle f64=(f32,f32).
Bruno Cardoso Lopes [Thu, 19 Nov 2009 06:06:13 +0000 (06:06 +0000)]
- Add sugregister logic to handle f64=(f32,f32).
- Support mips1 like load/store of doubles:

Instead of:
  sdc $f0, X($3)
Generate:
  swc $f0, X($3)
  swc $f1, X+4($3)

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

15 years agoOnly use small sections for non linux targets!
Bruno Cardoso Lopes [Thu, 19 Nov 2009 05:28:18 +0000 (05:28 +0000)]
Only use small sections for non linux targets!

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

15 years agoAdded a new Spiller implementation which wraps LiveIntervals::addIntervalsForSpills.
Lang Hames [Thu, 19 Nov 2009 04:15:33 +0000 (04:15 +0000)]
Added a new Spiller implementation which wraps LiveIntervals::addIntervalsForSpills.
All spiller calls in RegAllocLinearScan now go through the new Spiller interface.
The "-new-spill-framework" command line option has been removed. To use the trivial in-place spiller you should now pass "-spiller=trivial -rewriter=trivial".
(Note the trivial spiller/rewriter are only meant to serve as examples of the new in-place modification work. Enabling them will yield terrible, though hopefully functional, code).

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

15 years agoautoconf config.* claims to not know about auroraux triple.
Edward O'Callaghan [Thu, 19 Nov 2009 02:25:50 +0000 (02:25 +0000)]
autoconf config.* claims to not know about auroraux triple.

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

15 years agoTeach IVUsers to keep things simpler and track loop-invariant strides only
Jim Grosbach [Thu, 19 Nov 2009 02:05:44 +0000 (02:05 +0000)]
Teach IVUsers to keep things simpler and track loop-invariant strides only
for uses inside the loop. This works better with LSR. Disabled behind
-simplify-iv-users while benchmarking.

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

15 years agoEliminate duplicate phi nodes in loops. Loop rotation, for example, can introduce...
Jim Grosbach [Thu, 19 Nov 2009 02:03:18 +0000 (02:03 +0000)]
Eliminate duplicate phi nodes in loops. Loop rotation, for example, can introduce these, and it's beneficial to later passes to clean them up.

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

15 years agoMake EliminateDuplicatePHINodes() available as a utility function
Jim Grosbach [Thu, 19 Nov 2009 02:02:10 +0000 (02:02 +0000)]
Make EliminateDuplicatePHINodes() available as a utility function

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

15 years agoTest from Dhrystone to make sure that we're not emitting an aligned load for a
Bill Wendling [Thu, 19 Nov 2009 01:33:57 +0000 (01:33 +0000)]
Test from Dhrystone to make sure that we're not emitting an aligned load for a
string that's aligned at 8-bytes instead of 16-bytes.

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

15 years agoAdd TOOLALIAS makefile variable; this defines an alternate name for a program
Daniel Dunbar [Thu, 19 Nov 2009 00:14:53 +0000 (00:14 +0000)]
Add TOOLALIAS makefile variable; this defines an alternate name for a program
which the makefiles will create by symlinking the actual tool to.
 - For use by clang, where we want to make 'clang++' and alias for clang (which
   enables C++ support in the driver)

 - Not sure this is the best approach, alternative suggestions welcome!

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

15 years agoThe "ReadOnlyWithRel" enum seems to apply more to what Darwin does with the EH
Bill Wendling [Thu, 19 Nov 2009 00:09:14 +0000 (00:09 +0000)]
The "ReadOnlyWithRel" enum seems to apply more to what Darwin does with the EH
exception table than DataRel.

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

15 years agoTwine: Stores kinds as uchar instead of bitfield to be friendlier to the
Daniel Dunbar [Thu, 19 Nov 2009 00:04:43 +0000 (00:04 +0000)]
Twine: Stores kinds as uchar instead of bitfield to be friendlier to the
optimizer.

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

15 years agoThere should be no need to keep renumbering blocks during tail duplication.
Bob Wilson [Wed, 18 Nov 2009 23:48:57 +0000 (23:48 +0000)]
There should be no need to keep renumbering blocks during tail duplication.

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

15 years agoFix buildbots.
Bob Wilson [Wed, 18 Nov 2009 23:30:38 +0000 (23:30 +0000)]
Fix buildbots.

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

15 years agoAdd XCore support for indirectbr / blockaddress.
Richard Osborne [Wed, 18 Nov 2009 23:20:42 +0000 (23:20 +0000)]
Add XCore support for indirectbr / blockaddress.

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

15 years agoDe-bork CMake build
Douglas Gregor [Wed, 18 Nov 2009 23:20:09 +0000 (23:20 +0000)]
De-bork CMake build

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

15 years agoAttempt #2:
Bill Wendling [Wed, 18 Nov 2009 23:18:46 +0000 (23:18 +0000)]
Attempt #2:

Place the EH table in the __TEXT section on MachO. It saves space.

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

15 years agoTail duplication still needs to iterate. Duplicating new instructions onto
Bob Wilson [Wed, 18 Nov 2009 22:52:37 +0000 (22:52 +0000)]
Tail duplication still needs to iterate.  Duplicating new instructions onto
the tail of a block may make that block a new candidate for duplication.

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

15 years agoAdd another statistic to measure code size due to tail duplication.
Bob Wilson [Wed, 18 Nov 2009 22:12:31 +0000 (22:12 +0000)]
Add another statistic to measure code size due to tail duplication.

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

15 years agoRemove spurious @verbatim. Patch by Timo Juhani Lindfors!
Jeffrey Yasskin [Wed, 18 Nov 2009 22:04:44 +0000 (22:04 +0000)]
Remove spurious @verbatim.  Patch by Timo Juhani Lindfors!

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

15 years agoNot all ASM has # for comments.
Bill Wendling [Wed, 18 Nov 2009 21:54:13 +0000 (21:54 +0000)]
Not all ASM has # for comments.

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

15 years agoFix PR5300.
Jakob Stoklund Olesen [Wed, 18 Nov 2009 21:33:35 +0000 (21:33 +0000)]
Fix PR5300.

When TwoAddressInstructionPass deletes a dead instruction, make sure that all
register kills are accounted for. The 2-addr register does not get special
treatment.

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

15 years agoTableGen: Add initial backend for clang Driver's option parsing.
Daniel Dunbar [Wed, 18 Nov 2009 21:29:51 +0000 (21:29 +0000)]
TableGen: Add initial backend for clang Driver's option parsing.

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

15 years agoAllow the machine verifier to be run outside the PassManager.
Jakob Stoklund Olesen [Wed, 18 Nov 2009 20:36:57 +0000 (20:36 +0000)]
Allow the machine verifier to be run outside the PassManager.

Verify LiveVariables information when present.

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

15 years agoRemove the -early-coalescing option
Jakob Stoklund Olesen [Wed, 18 Nov 2009 20:36:47 +0000 (20:36 +0000)]
Remove the -early-coalescing option

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

15 years agoFixed the in-place spiller and trivial rewriter, which had been broken by the recent...
Lang Hames [Wed, 18 Nov 2009 20:31:20 +0000 (20:31 +0000)]
Fixed the in-place spiller and trivial rewriter, which had been broken by the recent SlotIndexes work.

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

15 years agoAdded getDefaultSubtargetFeatures method to SubtargetFeatures class which returns...
Viktor Kutuzov [Wed, 18 Nov 2009 20:20:05 +0000 (20:20 +0000)]
Added getDefaultSubtargetFeatures method to SubtargetFeatures class which returns a correct feature string for given triple.

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

15 years agoAdd statistics for tail duplication.
Bob Wilson [Wed, 18 Nov 2009 19:29:37 +0000 (19:29 +0000)]
Add statistics for tail duplication.

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

15 years agoAdd ARMv6 itineraries.
David Goodwin [Wed, 18 Nov 2009 18:39:57 +0000 (18:39 +0000)]
Add ARMv6 itineraries.

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

15 years agoFix a few places that were missed when we converted to unified syntax.
Bob Wilson [Wed, 18 Nov 2009 18:10:35 +0000 (18:10 +0000)]
Fix a few places that were missed when we converted to unified syntax.

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

15 years agoDon't require LiveVariables for PHIElimination. Enable critical edge splitting
Jakob Stoklund Olesen [Wed, 18 Nov 2009 18:01:35 +0000 (18:01 +0000)]
Don't require LiveVariables for PHIElimination. Enable critical edge splitting
when LiveVariables is available.

The -split-phi-edges is now gone, and so is the hack to disable it when using
the local register allocator. The PHIElimination pass no longer has
LiveVariables as a prerequisite - that is what broke the local allocator.
Instead we do critical edge splitting when possible - that is when
LiveVariables is available.

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

15 years agoTurn LLVM_BUILD_EXAMPLES off by default in CMake builds, to match Makefiles &
Daniel Dunbar [Wed, 18 Nov 2009 17:42:22 +0000 (17:42 +0000)]
Turn LLVM_BUILD_EXAMPLES off by default in CMake builds, to match Makefiles &
Clang.

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

15 years agolit: Fix exclude dirs functionality.
Daniel Dunbar [Wed, 18 Nov 2009 17:42:17 +0000 (17:42 +0000)]
lit: Fix exclude dirs functionality.

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

15 years agoFix passing of float arguments through ffi.
Nick Lewycky [Wed, 18 Nov 2009 05:43:15 +0000 (05:43 +0000)]
Fix passing of float arguments through ffi.

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

15 years agoAdd a target hook to allow changing the tail duplication limit based on the
Bob Wilson [Wed, 18 Nov 2009 03:34:27 +0000 (03:34 +0000)]
Add a target hook to allow changing the tail duplication limit based on the
contents of the block to be duplicated.  Use this for ARM Cortex A8/9 to
be more aggressive tail duplicating indirect branches, since it makes it
much more likely that they will be predicted in the branch target buffer.
Testcase coming soon.

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

15 years agoThe llvm-gcc front-end and the pass manager use two separate TargetData objects.
Bill Wendling [Wed, 18 Nov 2009 01:03:56 +0000 (01:03 +0000)]
The llvm-gcc front-end and the pass manager use two separate TargetData objects.
This is probably not confined to *just* these two things.

Anyway, the llvm-gcc front-end may look up the structure layout information for
an abstract type. That information will be stored into a table with the FE's
TD. Instruction combine can come along and also ask for information on that
abstract type, but for a separate TD (the one associated with the pass manager).

After the type is refined, the old structure layout information in the pass
manager's TD file is out of date. If a new type is allocated in the same space
as the old-unrefined type, then the structure type information in the pass
manager's TD file will be wrong, but won't know it.

Fix this by making the TD's structure type information an abstract type user.

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

15 years agoSimplify ComputeMultiple so that it doesn't depend on TargetData.
Dan Gohman [Wed, 18 Nov 2009 00:58:27 +0000 (00:58 +0000)]
Simplify ComputeMultiple so that it doesn't depend on TargetData.

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

15 years agoFix inverted test and add testcase from failing self-host.
Jakob Stoklund Olesen [Wed, 18 Nov 2009 00:02:18 +0000 (00:02 +0000)]
Fix inverted test and add testcase from failing self-host.

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

15 years agoRemove dead code.
Devang Patel [Tue, 17 Nov 2009 22:39:08 +0000 (22:39 +0000)]
Remove dead code.

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

15 years agoAdd ability to set code model within the execution engine builders
Eric Christopher [Tue, 17 Nov 2009 21:58:16 +0000 (21:58 +0000)]
Add ability to set code model within the execution engine builders
and creation interfaces.

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

15 years agoRemove fragile test.
Jakob Stoklund Olesen [Tue, 17 Nov 2009 21:52:40 +0000 (21:52 +0000)]
Remove fragile test.

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

15 years agogrammar
Jim Grosbach [Tue, 17 Nov 2009 21:37:04 +0000 (21:37 +0000)]
grammar

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

15 years agoEnable arm jumpt table adjustment.
Jim Grosbach [Tue, 17 Nov 2009 21:24:11 +0000 (21:24 +0000)]
Enable arm jumpt table adjustment.

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

15 years agoDisable -split-phi-edges to unbreak the buildbots
Jakob Stoklund Olesen [Tue, 17 Nov 2009 21:23:49 +0000 (21:23 +0000)]
Disable -split-phi-edges to unbreak the buildbots

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

15 years agoNever call UpdateTerminator() when AnalyzeBranch would fail.
Jakob Stoklund Olesen [Tue, 17 Nov 2009 20:46:00 +0000 (20:46 +0000)]
Never call UpdateTerminator() when AnalyzeBranch would fail.

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

15 years agoForgot to commit test fixes
Anton Korobeynikov [Tue, 17 Nov 2009 20:38:36 +0000 (20:38 +0000)]
Forgot to commit test fixes

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

15 years agoBoth Darwin as and GNU as violate ARM docs wrt printing of addrmode6
Anton Korobeynikov [Tue, 17 Nov 2009 20:04:59 +0000 (20:04 +0000)]
Both Darwin as and GNU as violate ARM docs wrt printing of addrmode6
alignment imm (in the same way). Fix asmprinting for non-darwin platforms.

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

15 years agoAdd a WriteAsOperand for MachineBasicBlock so MachineLoopInfo dump looks sane.
Evan Cheng [Tue, 17 Nov 2009 19:19:59 +0000 (19:19 +0000)]
Add a WriteAsOperand for MachineBasicBlock so MachineLoopInfo dump looks sane.

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

15 years agoFix comment.
Evan Cheng [Tue, 17 Nov 2009 19:19:01 +0000 (19:19 +0000)]
Fix comment.

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

15 years agoEnable -split-phi-edges by default, except when -regalloc=local.
Jakob Stoklund Olesen [Tue, 17 Nov 2009 19:15:50 +0000 (19:15 +0000)]
Enable -split-phi-edges by default, except when -regalloc=local.

The local register allocator doesn't like it when LiveVariables is run.
We should also disable edge splitting under -O0, but that has to wait a bit.

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

15 years ago80-column violations
Jim Grosbach [Tue, 17 Nov 2009 19:05:35 +0000 (19:05 +0000)]
80-column violations

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

15 years agoAdded getArchNameForAssembler method to the Triple class for which returns OS and...
Viktor Kutuzov [Tue, 17 Nov 2009 18:48:27 +0000 (18:48 +0000)]
Added getArchNameForAssembler method to the Triple class for which returns OS and Vendor independent target assembler arch.

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

15 years agoRemove a special case for tail merging that seems to be both broken and
Bob Wilson [Tue, 17 Nov 2009 18:30:09 +0000 (18:30 +0000)]
Remove a special case for tail merging that seems to be both broken and
unnecessary.  It is broken because the "isIdenticalTo" check should be
negated.  If that is fixed, this code causes the CodeGen/X86/tail-opts.ll
test to fail, in the dont_merge_oddly function.  And, I confirmed that the
regression is real -- the generated code is worse.  As far as I can tell,
that tail-opts.ll test is checking for what this code is supposed to handle
and we're doing the right thing anyway.

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

15 years agoGeneralize OptimizeLoopTermCond to optimize more loop terminating icmp to use postinc iv.
Evan Cheng [Tue, 17 Nov 2009 18:10:11 +0000 (18:10 +0000)]
Generalize OptimizeLoopTermCond to optimize more loop terminating icmp to use postinc iv.

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

15 years agoSet MadeChange instead of MadeChangeThisIteration.
Dan Gohman [Tue, 17 Nov 2009 18:04:15 +0000 (18:04 +0000)]
Set MadeChange instead of MadeChangeThisIteration.

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

15 years agoRevert CPU detection code to return "generic" instead of an empty string in case
Benjamin Kramer [Tue, 17 Nov 2009 17:57:04 +0000 (17:57 +0000)]
Revert CPU detection code to return "generic" instead of an empty string in case
of failure. The x86 target didn't like empty cpu names and broke x86 tests on
non-x86 buildbots.

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

15 years agoRemove trailing whitespace
Jim Grosbach [Tue, 17 Nov 2009 17:53:56 +0000 (17:53 +0000)]
Remove trailing whitespace

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

15 years agoUpdate a comment, now that tail duplication happens after other branch
Bob Wilson [Tue, 17 Nov 2009 17:40:31 +0000 (17:40 +0000)]
Update a comment, now that tail duplication happens after other branch
folding optimizations.

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

15 years agoSet Inst{15-12} (Rd/Rt) to 0b1111 (PC) for BR_JTadd, BR_JTr, and BR_JTm to
Johnny Chen [Tue, 17 Nov 2009 17:17:50 +0000 (17:17 +0000)]
Set Inst{15-12} (Rd/Rt) to 0b1111 (PC) for BR_JTadd, BR_JTr, and BR_JTm to
distinguish between them and the more generic instructions (add, mov, and ldr).

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

15 years agoPerform tail duplication only once, after tail merging is complete.
Bob Wilson [Tue, 17 Nov 2009 17:06:18 +0000 (17:06 +0000)]
Perform tail duplication only once, after tail merging is complete.
It was too difficult to keep the heuristics for merging and duplication
consistent.

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

15 years agoadd Case() with 5 args
Nuno Lopes [Tue, 17 Nov 2009 15:35:39 +0000 (15:35 +0000)]
add Case() with 5 args

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

15 years agoFix HTML formatting.
Jay Foad [Tue, 17 Nov 2009 13:13:59 +0000 (13:13 +0000)]
Fix HTML formatting.

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

15 years ago1. Allow SCCIterator to work with GraphT types that are constant.
Duncan Sands [Tue, 17 Nov 2009 10:54:25 +0000 (10:54 +0000)]
1.  Allow SCCIterator to work with GraphT types that are constant.
2.  Allow SCCIterator to work with inverse graphs.
3.  Fix an incorrect comment in GraphTraits.h (the type in the comment
was given as GraphType* when it is actually const GraphType &).
Patch by Patrick Alexander Simmons.

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

15 years agoMake bugpoint pass -load arguments to LLI. This lets one use bugpoint with
Duncan Sands [Tue, 17 Nov 2009 10:20:22 +0000 (10:20 +0000)]
Make bugpoint pass -load arguments to LLI.  This lets one use bugpoint with
programs that depend on native shared libraries.  Patch by Timo Lindfors.

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

15 years agoRevert 89021. It's miscompiling llvm-gcc driver driver at -O0.
Evan Cheng [Tue, 17 Nov 2009 09:55:52 +0000 (09:55 +0000)]
Revert 89021. It's miscompiling llvm-gcc driver driver at -O0.

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

15 years agoRe-apply 89011. It's not to be blamed.
Evan Cheng [Tue, 17 Nov 2009 09:51:18 +0000 (09:51 +0000)]
Re-apply 89011. It's not to be blamed.

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

15 years ago"XFAIL" the Split2 StringReft test with Apple gcc, which miscompiles it.
Daniel Dunbar [Tue, 17 Nov 2009 09:29:59 +0000 (09:29 +0000)]
"XFAIL" the Split2 StringReft test with Apple gcc, which miscompiles it.
 - I plan on fixing/workarounding this, but until then I'd like the bots to stay
   green.

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

15 years agoRevert 89011. Buildbot thinks it might be breaking stuff.
Evan Cheng [Tue, 17 Nov 2009 09:20:28 +0000 (09:20 +0000)]
Revert 89011. Buildbot thinks it might be breaking stuff.

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

15 years agoRemove VISIBILITY_HIDDEN from the classes in this directory. Fixes bug 5507.
Nick Lewycky [Tue, 17 Nov 2009 09:17:08 +0000 (09:17 +0000)]
Remove VISIBILITY_HIDDEN from the classes in this directory. Fixes bug 5507.

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

15 years agoFollowing a suggestion of Daniel Dunbar, stop people passing the name
Duncan Sands [Tue, 17 Nov 2009 08:34:52 +0000 (08:34 +0000)]
Following a suggestion of Daniel Dunbar, stop people passing the name
as the isSigned bool to CreateIntCast by having this resolve to a call
to a private method, rather than by using a gcc attribute.

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

15 years agoRevert r88939.
Nick Lewycky [Tue, 17 Nov 2009 08:11:44 +0000 (08:11 +0000)]
Revert r88939.

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

15 years agoFail less mysteriously; inform the user that their LLVM was not built with
Nick Lewycky [Tue, 17 Nov 2009 07:52:09 +0000 (07:52 +0000)]
Fail less mysteriously; inform the user that their LLVM was not built with
libffi support and that the interpreter can't call external functions without
it. Patch by Timo Juhani Lindfors! Fixes PR5466.

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

15 years agoFixed call to wrong constructor.
Lang Hames [Tue, 17 Nov 2009 07:19:50 +0000 (07:19 +0000)]
Fixed call to wrong constructor.

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

15 years agoFix a race condition in the Timer class.
Owen Anderson [Tue, 17 Nov 2009 07:06:10 +0000 (07:06 +0000)]
Fix a race condition in the Timer class.

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

15 years agoRefactor the code that creates the "dot-label" difference. This may be used in
Bill Wendling [Tue, 17 Nov 2009 01:23:53 +0000 (01:23 +0000)]
Refactor the code that creates the "dot-label" difference. This may be used in
more than one place. No intended functionality change.

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

15 years agoWhen moving a block for table jumps, make sure the prior block terminator
Jim Grosbach [Tue, 17 Nov 2009 01:21:04 +0000 (01:21 +0000)]
When moving a block for table jumps, make sure the prior block terminator
is analyzable so it can be updated. If it's not, be safe and don't move the
block.

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

15 years agoEnable -split-phi-edges by default
Jakob Stoklund Olesen [Tue, 17 Nov 2009 01:07:22 +0000 (01:07 +0000)]
Enable -split-phi-edges by default

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

15 years agoMOV64rm should be marked isReMaterializable.
Evan Cheng [Tue, 17 Nov 2009 00:55:55 +0000 (00:55 +0000)]
MOV64rm should be marked isReMaterializable.

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

15 years agoRemove the optimizations that convert BRCOND and BR_CC into
Dan Gohman [Tue, 17 Nov 2009 00:47:23 +0000 (00:47 +0000)]
Remove the optimizations that convert BRCOND and BR_CC into
unconditional branches or fallthroghes. Instcombine/SimplifyCFG
should be simplifying branches with known conditions.

This fixes some problems caused by these transformations not
updating the MachineBasicBlock CFG.

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

15 years agoRemove debug info attached with an instruction.
Devang Patel [Tue, 17 Nov 2009 00:47:06 +0000 (00:47 +0000)]
Remove debug info attached with an instruction.

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