Jakob Stoklund Olesen [Fri, 17 Dec 2010 01:31:49 +0000 (01:31 +0000)]
Complete tests for IntervalMapOverlaps.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122019
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Fri, 17 Dec 2010 01:21:12 +0000 (01:21 +0000)]
Fix crash compiling a QQQQ REG_SEQUENCE for a Neon vld3_lane operation.
Radar
8776599
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122018
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Fri, 17 Dec 2010 01:21:08 +0000 (01:21 +0000)]
Use PairDRegs to implement ConcatVectors. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122017
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Fri, 17 Dec 2010 01:21:05 +0000 (01:21 +0000)]
Fix a comment typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122016
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Fri, 17 Dec 2010 01:21:03 +0000 (01:21 +0000)]
Neon intrinsic tests need to be compiled for Cortex-A9 for f16 support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122015
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 17 Dec 2010 01:09:43 +0000 (01:09 +0000)]
Revert r64460. strtol and friends cannot be marked readonly, even with
a null endptr argument, because they may write to errno.
This fixes a seflhost miscompile observed on Linux targets when TBAA
was enabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122014
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 17 Dec 2010 01:07:35 +0000 (01:07 +0000)]
MC: Remove another dead MCAssembler argument, and update clients.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122013
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 17 Dec 2010 01:07:31 +0000 (01:07 +0000)]
MC: Remove dead MCAssembler argument -- Rafael, can you check the FIXME I added
here?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122012
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 17 Dec 2010 01:07:28 +0000 (01:07 +0000)]
MC: Simplify (remove unnecessary MCAssembler argument, obsoleted by containment
in MCAsmLayout).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122011
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 17 Dec 2010 01:07:25 +0000 (01:07 +0000)]
Fix 80-col viola.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122010
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 17 Dec 2010 01:07:22 +0000 (01:07 +0000)]
Write => in a more normal form.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122009
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 17 Dec 2010 01:07:20 +0000 (01:07 +0000)]
MC/Expr: Simplify (and add a FIXME).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122008
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 17 Dec 2010 00:28:02 +0000 (00:28 +0000)]
"Fix" FDE alignment to match what gas does.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122006
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 16 Dec 2010 22:50:01 +0000 (22:50 +0000)]
Make pushq produce signed relocations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122005
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Thu, 16 Dec 2010 22:37:52 +0000 (22:37 +0000)]
llvm-dis: Fix memory leak. ParseBitcodeFile should be taking ownership of
the MemoryBuffer*, however, it doesn't seem to delete it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122004
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 16 Dec 2010 19:46:09 +0000 (19:46 +0000)]
Add basic test exposing many bugs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121995
91177308-0d34-0410-b5e6-
96231b3b80d8
Wesley Peck [Thu, 16 Dec 2010 19:41:31 +0000 (19:41 +0000)]
Fix MBlaze backend call instructions so that arguments passed through registers
are correctly marked as used. This removes a hack where the call instructions
marked all possible argument registers as used in the tablegen description.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121994
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 16 Dec 2010 19:11:16 +0000 (19:11 +0000)]
Pseudo-ize the Thumb1 tBfar pattern. rdar://
8777974
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121990
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 16 Dec 2010 18:36:25 +0000 (18:36 +0000)]
MC/Expr: Add a doxyment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121988
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 16 Dec 2010 17:51:14 +0000 (17:51 +0000)]
Oops, didn't mean to ignore .gitignore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121985
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 16 Dec 2010 17:21:02 +0000 (17:21 +0000)]
MC/Mach-O: Lift some MachObjectWriter arguments into the target specific
interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121981
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Thu, 16 Dec 2010 16:23:38 +0000 (16:23 +0000)]
llvm-dis: Simplify MemoryBuffer usage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121975
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Thu, 16 Dec 2010 16:23:30 +0000 (16:23 +0000)]
Fix whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121974
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 16 Dec 2010 16:09:19 +0000 (16:09 +0000)]
MC/Mach-O: Stub out explicit MCMachObjectTargetWriter interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121973
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 16 Dec 2010 16:08:43 +0000 (16:08 +0000)]
Fix indentation (per style guide).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121972
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 16 Dec 2010 16:08:33 +0000 (16:08 +0000)]
MC/Mach-O: Move createMachObjectWriter into MCMachObjectWriter.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121971
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 16 Dec 2010 15:42:31 +0000 (15:42 +0000)]
MC/Mach-O: Use fixup info instead of hard coded list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121970
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 16 Dec 2010 15:42:26 +0000 (15:42 +0000)]
build: Fix ONLY_TOOLS to not build lto etc. unless specified.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121969
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 16 Dec 2010 15:42:18 +0000 (15:42 +0000)]
Add some more .gitignore entries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121968
91177308-0d34-0410-b5e6-
96231b3b80d8
Frits van Bommel [Thu, 16 Dec 2010 12:16:00 +0000 (12:16 +0000)]
Fix a bug in the loop in JumpThreading::ProcessThreadableEdges() where it could falsely produce a MultipleDestSentinel value if the first predecessor ended with an 'indirectbr'. If that happened, it caused an unnecessary FindMostPopularDest() call.
This wasn't a correctness problem, but it broke the fast path for single-predecessor blocks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121966
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 16 Dec 2010 09:40:54 +0000 (09:40 +0000)]
Speculatively revert commit 121905 since it looks like it might have broken the
dragonegg self-host buildbot. Original commit message:
Add an InstCombine transform to recognize instances of manual overflow-safe addition
(performing the addition in a wider type and explicitly checking for overflow), and
fold them down to intrinsics. This currently only supports signed-addition, but could
be generalized if someone works out the magic constant formulas for other operations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121965
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 16 Dec 2010 04:36:42 +0000 (04:36 +0000)]
Fix some compiler warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121959
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Thu, 16 Dec 2010 03:29:14 +0000 (03:29 +0000)]
MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> via an out parm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121958
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Thu, 16 Dec 2010 03:25:38 +0000 (03:25 +0000)]
Add .gitignore. I chose not to dump the svn ignore list into this because most
of the entries there are useless for out of source builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121955
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 16 Dec 2010 03:20:06 +0000 (03:20 +0000)]
MC: Move target specific fixup info descriptors to TargetAsmBackend instead of
the MCCodeEmitter, which seems like a better organization.
- Also, cleaned up some magic constants while in the area.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121953
91177308-0d34-0410-b5e6-
96231b3b80d8
Jason W Kim [Thu, 16 Dec 2010 03:12:17 +0000 (03:12 +0000)]
1. ARM/MC/ELF: A few more ELF relocs for .o
2. Fixed EmitLocalCommonSymbol for ELF (Yes, they exist. :)
Test added.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121951
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 16 Dec 2010 03:05:59 +0000 (03:05 +0000)]
MC: Make TargetAsmBackend available to the AsmStreamer.
- Treaty talks on the non-proliferation of MC objects broke down.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121949
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 16 Dec 2010 03:05:53 +0000 (03:05 +0000)]
MC: Split MCFixupKindInfo out into its own header.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121948
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 16 Dec 2010 03:05:46 +0000 (03:05 +0000)]
MC: Remove a FIXME I no longer agree with.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121947
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 16 Dec 2010 02:55:10 +0000 (02:55 +0000)]
Update a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121946
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 16 Dec 2010 02:53:48 +0000 (02:53 +0000)]
-enable-tbaa is on by default now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121945
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 16 Dec 2010 02:51:19 +0000 (02:51 +0000)]
Make memcpyopt TBAA-aware.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121944
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Thu, 16 Dec 2010 01:48:15 +0000 (01:48 +0000)]
lib/Support/regexec.c: Let Regex LLP64-aware.
On LLP64 Win64, 'states1' (for small version) was expanded to 'char *' for large version. Thus small version would be mischosen when nstates > 32 regardless of sizeof(long) on Win64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121942
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Beaumont-Gay [Thu, 16 Dec 2010 01:34:26 +0000 (01:34 +0000)]
Delete an extra "Imm5 = ", caught by GCC's -Wsequence-point but not by Clang
(see PR4579).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121939
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 16 Dec 2010 01:18:29 +0000 (01:18 +0000)]
Add IntervalMapOverlaps - An iterator for overlapping intervals in two
IntervalMaps.
The IntervalMaps can have different template parameters, but the KeyT and Traits
types must be the same.
Tests are forthcoming.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121935
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 16 Dec 2010 00:50:33 +0000 (00:50 +0000)]
Remove fixup_arm_thumb_ldst. The code was never calling the "fixup" stuff for
it. I.e., it was always an immediate value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121932
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 16 Dec 2010 00:49:54 +0000 (00:49 +0000)]
Add tSpill and tRestore to the opcodes to replace with tSTRi and tLDRi
respectively.
It may be a bug that these opcodes are getting this far into machine code
generation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121931
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 16 Dec 2010 00:38:41 +0000 (00:38 +0000)]
Add encodings for Thumb1 Spill and Restore pseudos.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121929
91177308-0d34-0410-b5e6-
96231b3b80d8
Jason W Kim [Thu, 16 Dec 2010 00:15:10 +0000 (00:15 +0000)]
Fix elf-dump --dump-section-data for .bss section
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121927
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 15 Dec 2010 23:58:44 +0000 (23:58 +0000)]
Enable TBAA by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121923
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 15 Dec 2010 23:53:55 +0000 (23:53 +0000)]
Preserve TBAA tags when doing load PRE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121921
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Dec 2010 23:52:36 +0000 (23:52 +0000)]
Thumb1 had two patterns for the same load-from-constant-pool instruction.
Canonicalize on tLDRpci and remove tLDRcp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121920
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 15 Dec 2010 23:47:29 +0000 (23:47 +0000)]
Don't handle -arm-long-calls in fast isel for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121919
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 15 Dec 2010 23:46:13 +0000 (23:46 +0000)]
Start using SplitKit and MachineLoopRanges in RegAllocGreedy in preparation of
live range splitting around loops guided by register pressure.
So far, trySplit() simply prints a lot of debug output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121918
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 15 Dec 2010 23:41:23 +0000 (23:41 +0000)]
Add MachineLoopRanges analysis.
A MachineLoopRange contains the intervals of slot indexes covered by the blocks
in a loop. This representation of the loop blocks is more efficient to compare
against interfering registers during register coalescing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121917
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 15 Dec 2010 23:32:27 +0000 (23:32 +0000)]
If we're changing the frame register to a physical register other than SP, we
need to use tLDRi and tSTRi instead of tLDRspi and tSTRspi respectively.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121915
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 15 Dec 2010 23:31:24 +0000 (23:31 +0000)]
Whitespace cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121914
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 15 Dec 2010 23:16:25 +0000 (23:16 +0000)]
Teach the Neon intrinsic generator to widen half-precision float types.
This isn't currently used for anything but I ran into it when experimenting
with some changes, and it might be useful in the future.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121911
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Beaumont-Gay [Wed, 15 Dec 2010 23:14:45 +0000 (23:14 +0000)]
Better fix for opt build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121910
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 15 Dec 2010 23:09:41 +0000 (23:09 +0000)]
Fix a typo that Bill spotted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121909
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 15 Dec 2010 22:57:36 +0000 (22:57 +0000)]
Only rr forms of ADD*_DB are commutable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121908
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 15 Dec 2010 22:33:06 +0000 (22:33 +0000)]
Typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121906
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 15 Dec 2010 22:32:38 +0000 (22:32 +0000)]
Add an InstCombine transform to recognize instances of manual overflow-safe addition
(performing the addition in a wider type and explicitly checking for overflow), and
fold them down to intrinsics. This currently only supports signed-addition, but could
be generalized if someone works out the magic constant formulas for other operations.
Fixes <rdar://problem/
8558713>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121905
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Beaumont-Gay [Wed, 15 Dec 2010 22:21:20 +0000 (22:21 +0000)]
Fix opt -Werror build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121904
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 15 Dec 2010 22:16:21 +0000 (22:16 +0000)]
Teach machine cse to commute instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121903
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 15 Dec 2010 22:14:12 +0000 (22:14 +0000)]
Add Neon VCVT instructions for f32 <-> f16 conversions.
Clang is now providing intrinsics for these and so we need to support them
in the backend. Radar
8068427.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121902
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 15 Dec 2010 22:14:01 +0000 (22:14 +0000)]
Fix misspelled target triples in MC/ARM test commands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121901
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 15 Dec 2010 20:49:55 +0000 (20:49 +0000)]
Reapply r121886, and also update DecomposeGEPExpression to keep
it in sync.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121895
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 15 Dec 2010 20:40:22 +0000 (20:40 +0000)]
Add SlotIndexes::getMBBRange() to get the range of a basic block in a single
lookup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121893
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 15 Dec 2010 20:39:25 +0000 (20:39 +0000)]
Revert r121886. DecomposeGEPExpression needs to be kept
in sync.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121892
91177308-0d34-0410-b5e6-
96231b3b80d8
Wesley Peck [Wed, 15 Dec 2010 20:27:28 +0000 (20:27 +0000)]
Lower the MBlaze target specific calling conventions for "interrupt_handler"
and "save_volatiles" correctly. This completes the custom calling convention
functionality changes for the MBlaze backend that were started in 121888.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121891
91177308-0d34-0410-b5e6-
96231b3b80d8
Wesley Peck [Wed, 15 Dec 2010 20:14:09 +0000 (20:14 +0000)]
Adding target specific calling conventions to support the MBlaze GCC function
attributes "interrupt_handle" and "save_volatiles". Support for lowering these
correctly will be in an upcoming commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121888
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 15 Dec 2010 20:10:26 +0000 (20:10 +0000)]
Strengthen GetUnderlyingObject using InstructionSimplify.
While LLVM's main design is that analysis code shouldn't
go out of its way to understand code which hasn't been
InstCombined, analysis utility routines like this can
find themselves being called in the middle of transform
passes when instcombine hasn't had a chance to run.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121886
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 15 Dec 2010 20:02:24 +0000 (20:02 +0000)]
Move Value::getUnderlyingObject to be a standalone
function so that it can live in Analysis instead of
VMCore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121885
91177308-0d34-0410-b5e6-
96231b3b80d8
Wesley Peck [Wed, 15 Dec 2010 19:35:36 +0000 (19:35 +0000)]
Add some special purpose register definitions to the MBlaze backend and cleanup some old, unused floating point register definitions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121882
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 15 Dec 2010 19:24:24 +0000 (19:24 +0000)]
Fix typo in r121875.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121880
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Dec 2010 19:03:16 +0000 (19:03 +0000)]
Tweak a few pseudo-inst pattern base classes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121878
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 15 Dec 2010 18:57:18 +0000 (18:57 +0000)]
Clean up some of LVI:
* mergeIn now uses constant folding for constants that are provably not-equal.
* sink some sanity checks from the get*() methods into the mark*() methods, to ensure that we never have a constant/notconstant ConstantInt
* some textual cleanups, whitespace changes, removing "else" after return, that sort of thing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121877
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Dec 2010 18:48:45 +0000 (18:48 +0000)]
The new t2LEApcrel* pseudo instructions need the size specified.
rdar://
8768390
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121876
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 15 Dec 2010 18:48:27 +0000 (18:48 +0000)]
Implement cleanups suggested by Daniel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121875
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 15 Dec 2010 18:45:20 +0000 (18:45 +0000)]
Document some more AliasAnalysis infrastructure limitations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121874
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 15 Dec 2010 18:07:48 +0000 (18:07 +0000)]
Fix build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121872
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 15 Dec 2010 17:49:52 +0000 (17:49 +0000)]
Detect and enumerate bypass loops.
Bypass loops have the current live range live through, but contain no uses or
defs. Splitting around a bypass loop can free registers for other uses inside
the loop by spilling the split range.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121871
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 15 Dec 2010 17:41:19 +0000 (17:41 +0000)]
Separate SplitAnalysis::getSplitLoops().
This method returns the set of loops with uses that are candidates for
splitting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121870
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 15 Dec 2010 16:58:45 +0000 (16:58 +0000)]
Add a Neon intrinsic test generator.
This is still a WIP. It's already good enough to expose a few bugs, though.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121868
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 15 Dec 2010 16:58:42 +0000 (16:58 +0000)]
Fix Neon intrinsic immediate range checking for some double-register operands.
Some quad-register intrinsics with lane operands only take a double-register
operand for the vector containing the lane. The valid range of lane numbers
is then half as big as you would expect from the quad-register type.
Note: This currently has no effect because those intrinsics are now handled
entirely in the header file using __builtin_shufflevector, which does its own
range checking, but I want to use this for generating tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121867
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 15 Dec 2010 14:07:39 +0000 (14:07 +0000)]
Move Sub simplifications and additional Add simplifications out of
instcombine and into InstructionSimplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121861
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 15 Dec 2010 11:02:22 +0000 (11:02 +0000)]
If we detect that the instruction we are simplifying is unreachable, arrange for
it to be replaced by undef rather than not replaced at all, the idea being that
this may reduce the amount of work done by whoever called InstructionSimplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121860
91177308-0d34-0410-b5e6-
96231b3b80d8
Frits van Bommel [Wed, 15 Dec 2010 09:51:20 +0000 (09:51 +0000)]
Teach jump threading to "look through" a select when the branch direction of a terminator depends on it.
When it sees a promising select it now tries to figure out whether the condition of the select is known in any of the predecessors and if so it maps the operands appropriately.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121859
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 15 Dec 2010 08:51:02 +0000 (08:51 +0000)]
Add fixups for Thumb LDR/STR instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121858
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 15 Dec 2010 08:45:53 +0000 (08:45 +0000)]
Relax alignment fragments.
With this we don't need the EffectiveSize field anymore. Without that field
LayoutFragment only updates offsets and we don't need to invalidate the
current fragment when it is relaxed (only the ones following it).
This is also a very small improvement in the accuracy of the layout info as
we now use the after relaxation size immediately.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121857
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 15 Dec 2010 07:39:29 +0000 (07:39 +0000)]
Patch by David Meyer to avoid a O(N^2) behaviour when relaxing fragments.
Since we now don't update addresses so early, we might relax a bit more than
we need to. This is simillar to the issue in PR8467.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121856
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Dec 2010 07:28:58 +0000 (07:28 +0000)]
add another overflow idiom
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121854
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Dec 2010 07:25:55 +0000 (07:25 +0000)]
add a note about overflow idiom recognition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121853
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 15 Dec 2010 07:12:24 +0000 (07:12 +0000)]
Generalize an assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121851
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Dec 2010 07:10:43 +0000 (07:10 +0000)]
add a shift/imul missed optimization
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121850
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Dec 2010 06:38:24 +0000 (06:38 +0000)]
add a note about a SPEC hack that gcc mainline does.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121849
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Dec 2010 06:04:19 +0000 (06:04 +0000)]
take care of some todos, transforming [us]mul_lohi into
a wider mul if the wider mul is legal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121848
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Dec 2010 05:58:59 +0000 (05:58 +0000)]
merge two tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121847
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Dec 2010 05:51:39 +0000 (05:51 +0000)]
when transforming a MULHS into a wider MUL, there is no need to SRA the
result, the top bits are truncated off anyway, just use SRL.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121846
91177308-0d34-0410-b5e6-
96231b3b80d8