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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Jeffrey Yasskin [Tue, 17 Nov 2009 00:43:13 +0000 (00:43 +0000)]
In GlobalVariable::setInitializer, assert that the initializer has the
right type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89014
91177308-0d34-0410-b5e6-
96231b3b80d8