oota-llvm.git
12 years agoReverted r152620 - DSE: Shorten memset when a later store overwrites the start of...
Pete Cooper [Tue, 28 Feb 2012 05:06:24 +0000 (05:06 +0000)]
Reverted r152620 - DSE: Shorten memset when a later store overwrites the start of it.  There were all sorts of buildbot issues

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

12 years agoDSE: Shorten memset when a later store overwrites the start of it
Pete Cooper [Tue, 28 Feb 2012 04:27:10 +0000 (04:27 +0000)]
DSE: Shorten memset when a later store overwrites the start of it

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

12 years agoOops...Don't commit the other stuff..
Bill Wendling [Tue, 28 Feb 2012 04:01:21 +0000 (04:01 +0000)]
Oops...Don't commit the other stuff..

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

12 years agoModify comment to reflect the importance of this code.
Bill Wendling [Tue, 28 Feb 2012 03:47:09 +0000 (03:47 +0000)]
Modify comment to reflect the importance of this code.

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

12 years agoAdd comments.
Akira Hatanaka [Tue, 28 Feb 2012 03:18:43 +0000 (03:18 +0000)]
Add comments.

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

12 years agoDo not reserve $gp as a dedicated global base register if the target ABI is not O32.
Akira Hatanaka [Tue, 28 Feb 2012 03:17:38 +0000 (03:17 +0000)]
Do not reserve $gp as a dedicated global base register if the target ABI is not O32.

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

12 years agoStrip extraneous information, if present, from the linker version string on
Charles Davis [Tue, 28 Feb 2012 02:55:41 +0000 (02:55 +0000)]
Strip extraneous information, if present, from the linker version string on
Mac OS X. Patch by Fabian Groffen, with a slight tweak by me.

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

12 years agoAdd support for floating point base register + offset register addressing mode
Akira Hatanaka [Tue, 28 Feb 2012 02:55:02 +0000 (02:55 +0000)]
Add support for floating point base register + offset register addressing mode
load and store instructions.

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

12 years agoHandle regmasks in MachineCSE.
Jakob Stoklund Olesen [Tue, 28 Feb 2012 02:08:50 +0000 (02:08 +0000)]
Handle regmasks in MachineCSE.

Don't attempt to extend physreg live ranges across calls.

<rdar://problem/10942095>

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

12 years agoEnable -Wcovered-switch-default as it matches the switch style used in llvm.
Rafael Espindola [Tue, 28 Feb 2012 02:01:55 +0000 (02:01 +0000)]
Enable -Wcovered-switch-default as it matches the switch style used in llvm.

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

12 years agoHandle regmasks in the machine code verifier.
Jakob Stoklund Olesen [Tue, 28 Feb 2012 01:42:41 +0000 (01:42 +0000)]
Handle regmasks in the machine code verifier.

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

12 years agoEnable ARM base pointer when calling functions with large arguments.
Jakob Stoklund Olesen [Tue, 28 Feb 2012 01:15:01 +0000 (01:15 +0000)]
Enable ARM base pointer when calling functions with large arguments.

When an outgoing call takes more than 2k of arguments on the stack, we
don't allocate that call frame in the prolog, but adjust the stack
pointer immediately before the call instead.

This causes problems with the emergency spill slot because PEI can't
track stack pointer adjustments on the second pass, and if the outgoing
arguments are too big, SP can't be used to reach the emergency spill
slot at all.

Work around these problems by ensuring there is a base or frame pointer
that can be used to access the emergency spill slot.

<rdar://problem/10917166>

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

12 years ago[Object] Add {begin,end}_dynamic_symbols stubs and implementation for ELF.
Michael J. Spencer [Tue, 28 Feb 2012 00:40:37 +0000 (00:40 +0000)]
[Object] Add {begin,end}_dynamic_symbols stubs and implementation for ELF.
Add -D option to llvm-nm to dump dynamic symbols.

Patch by David Meyer.

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

12 years agoFix 80-column violation.
Chad Rosier [Tue, 28 Feb 2012 00:23:01 +0000 (00:23 +0000)]
Fix 80-column violation.

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

12 years agoAllow llvm-stress to optionally generate the other floating-point types (half, ppcf12...
Hal Finkel [Mon, 27 Feb 2012 23:59:33 +0000 (23:59 +0000)]
Allow llvm-stress to optionally generate the other floating-point types (half, ppcf128, mmx, etc.)

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

12 years agoAdd back removed code. It still causes LLVM to miscompile. But not having it breaks...
Bill Wendling [Mon, 27 Feb 2012 23:48:30 +0000 (23:48 +0000)]
Add back removed code. It still causes LLVM to miscompile. But not having it breaks other things.

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

12 years agoThis patch adds instruction latencies for the SSE instructions
Preston Gurd [Mon, 27 Feb 2012 23:35:03 +0000 (23:35 +0000)]
This patch adds instruction latencies for the SSE instructions
to the instruction scheduler for the Intel Atom.

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

12 years agotest commit.
Preston Gurd [Mon, 27 Feb 2012 23:31:51 +0000 (23:31 +0000)]
test commit.

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

12 years agoDuncan pointed out that if the alignment isn't explicitly specified, it defaults...
Eli Friedman [Mon, 27 Feb 2012 23:16:46 +0000 (23:16 +0000)]
Duncan pointed out that if the alignment isn't explicitly specified, it defaults to the ABI alignment.  Given that, make this code a bit more aggressive in such cases.

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

12 years agoDelete incorrect reference to inexistent Hexagon architecture manuals.
Evandro Menezes [Mon, 27 Feb 2012 23:00:52 +0000 (23:00 +0000)]
Delete incorrect reference to inexistent Hexagon architecture manuals.

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

12 years agoDon't use #if 0. Just remove until I can address this.
Bill Wendling [Mon, 27 Feb 2012 22:55:40 +0000 (22:55 +0000)]
Don't use #if 0. Just remove until I can address this.

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

12 years agoXFAIL test until <rdar://problem/10913281> is fixed.
Bill Wendling [Mon, 27 Feb 2012 22:53:42 +0000 (22:53 +0000)]
XFAIL test until <rdar://problem/10913281> is fixed.

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

12 years agoThe code that cleans up multiple, isomorphic types has a subtle error that
Bill Wendling [Mon, 27 Feb 2012 22:34:19 +0000 (22:34 +0000)]
The code that cleans up multiple, isomorphic types has a subtle error that
manifests itself when building LLVM with LTO.
<rdar://problem/10913281>

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

12 years agoRemove duplicate copy of Object/ELF.h that somehow managed to get in.
Michael J. Spencer [Mon, 27 Feb 2012 22:06:44 +0000 (22:06 +0000)]
Remove duplicate copy of Object/ELF.h that somehow managed to get in.

Patch by David Meyer.

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

12 years agoFix for PR12090: clear def maps of aliases when visiting a copy. e.g.
Evan Cheng [Mon, 27 Feb 2012 21:46:42 +0000 (21:46 +0000)]
Fix for PR12090: clear def maps of aliases when visiting a copy. e.g.
%S5<def> = COPY %S0<kill>
First clear def map of Q1, etc.

No small test case available.

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

12 years agoARM BL/BLX instruction fixups should use relocations.
Jim Grosbach [Mon, 27 Feb 2012 21:36:23 +0000 (21:36 +0000)]
ARM BL/BLX instruction fixups should use relocations.

We on the linker to resolve calls to the appropriate BL/BLX instruction
to make interworking function correctly. It uses the symbol in the
relocation to do that, so we need to be careful about being too clever.

To enable this for ARM mode, split the BL/BLX fixup kind off from the
unconditional-branch fixups.

rdar://10927209

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

12 years agoMove "clang/Analysis/Support/SaveAndRestore.h" to "llvm/ADT/SaveAndRestore.h"
Argyrios Kyrtzidis [Mon, 27 Feb 2012 21:08:33 +0000 (21:08 +0000)]
Move "clang/Analysis/Support/SaveAndRestore.h" to "llvm/ADT/SaveAndRestore.h"
to make it more widely available.

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

12 years agoTeach BasicAA about the LLVM IR rules that allow reading past the end of an object...
Eli Friedman [Mon, 27 Feb 2012 20:46:07 +0000 (20:46 +0000)]
Teach BasicAA about the LLVM IR rules that allow reading past the end of an object given sufficient alignment.  Fixes PR12098.

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

12 years agoTest the section specification.
Roman Divacky [Mon, 27 Feb 2012 20:42:19 +0000 (20:42 +0000)]
Test the section specification.

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

12 years agoFix PR12089
Derek Schuff [Mon, 27 Feb 2012 20:31:47 +0000 (20:31 +0000)]
Fix PR12089
http://llvm.org/bugs/show_bug.cgi?id=12089

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

12 years agoReapply r151278 with fixes.
Roman Divacky [Mon, 27 Feb 2012 20:20:47 +0000 (20:20 +0000)]
Reapply r151278 with fixes.

MCize function entry label emission on PowerPC64 properly.

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

12 years agoAdd q suffix aliases for the fistp and fisttp mnemonics.
Chad Rosier [Mon, 27 Feb 2012 19:43:12 +0000 (19:43 +0000)]
Add q suffix aliases for the fistp and fisttp mnemonics.
rdar://10921670
PR11935

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

12 years agoRemove unnecessary template parameters.
Akira Hatanaka [Mon, 27 Feb 2012 19:17:53 +0000 (19:17 +0000)]
Remove unnecessary template parameters.

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

12 years agoFix instruction predicates that were not set correctly.
Akira Hatanaka [Mon, 27 Feb 2012 19:09:08 +0000 (19:09 +0000)]
Fix instruction predicates that were not set correctly.

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

12 years agoUpdate machine code verifier.
Jakob Stoklund Olesen [Mon, 27 Feb 2012 18:24:30 +0000 (18:24 +0000)]
Update machine code verifier.

After the SlotIndex slot names were updated, it is possible to apply
stricter checks to live intervals.

Also treat bundles as bags of operands when checking live intervals.

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

12 years agoFix the symbolic operand added for the C disassmbler API for the ARM bl
Kevin Enderby [Mon, 27 Feb 2012 18:15:15 +0000 (18:15 +0000)]
Fix the symbolic operand added for the C disassmbler API for the ARM bl
thumb instruction.  The PC adjustment is +4 in Thumb mode and +8 in ARM mode.

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

12 years agoAdd a MachineOperand iterator class.
Jakob Stoklund Olesen [Mon, 27 Feb 2012 18:09:36 +0000 (18:09 +0000)]
Add a MachineOperand iterator class.

The MIOperands iterator can visit operands on a single instruction, or
all operands in a bundle.  This simplifies code like the register
allocator that treats bundles as a set of operands.

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

12 years agoPlog a memleak in GlobalOpt.
Benjamin Kramer [Mon, 27 Feb 2012 12:48:24 +0000 (12:48 +0000)]
Plog a memleak in GlobalOpt.

Found by valgrind.

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

12 years agoMicro-optimization, no functionality change.
Duncan Sands [Mon, 27 Feb 2012 12:11:41 +0000 (12:11 +0000)]
Micro-optimization, no functionality change.

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

12 years agoHelp the compiler to eliminate some dead code when hashing an array of T
Jay Foad [Mon, 27 Feb 2012 11:00:17 +0000 (11:00 +0000)]
Help the compiler to eliminate some dead code when hashing an array of T
where sizeof (T) is a multiple of 4.

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

12 years agoThe value numbering function is recursive, so it is possible for multiple new
Duncan Sands [Mon, 27 Feb 2012 09:54:35 +0000 (09:54 +0000)]
The value numbering function is recursive, so it is possible for multiple new
value numbers to be assigned when calculating any particular value number.
Enhance the logic that detects new value numbers to take this into account,
for a tiny compile time speedup.  Fix a comment typo while there.

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

12 years agoWhen performing a conditional branch depending on the value of a comparison
Duncan Sands [Mon, 27 Feb 2012 08:14:30 +0000 (08:14 +0000)]
When performing a conditional branch depending on the value of a comparison
%cmp (eg: A==B) we already replace %cmp with "true" under the true edge, and
with "false" under the false edge.  This change enhances this to replace the
negated compare (A!=B) with "false" under the true edge and "true" under the
false edge.  Reported to improve perlbench results by 1%.

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

12 years agoRemove HexagonGenIntrinsics.inc from Hexagon cmake file. It does not appear in the...
Craig Topper [Mon, 27 Feb 2012 02:59:43 +0000 (02:59 +0000)]
Remove HexagonGenIntrinsics.inc from Hexagon cmake file. It does not appear in the Makefile and the output it produces isn't used. The Hexagon intrinsics are all in the global Intrinsics.gen.

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

12 years agoUpdate tblgen command guide. Remove unused tblgen InstrEnumEmitter files.
Craig Topper [Mon, 27 Feb 2012 02:31:09 +0000 (02:31 +0000)]
Update tblgen command guide. Remove unused tblgen InstrEnumEmitter files.

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

12 years agodelete useless comment&blank
Jia Liu [Mon, 27 Feb 2012 02:21:34 +0000 (02:21 +0000)]
delete useless comment&blank

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

12 years agoFix this assert. IP can point to an instruction with strange dominance
Rafael Espindola [Mon, 27 Feb 2012 02:13:03 +0000 (02:13 +0000)]
Fix this assert. IP can point to an instruction with strange dominance
properties (invoke). Just assert that the instruction we return dominates
the insertion point.

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

12 years agoX86 disassembler support for jcxz, jecxz, and jrcxz. Fixes PR11643. Patch by Kay...
Craig Topper [Mon, 27 Feb 2012 01:54:29 +0000 (01:54 +0000)]
X86 disassembler support for jcxz, jecxz, and jrcxz. Fixes PR11643. Patch by Kay Tiong Khoo.

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

12 years agoRemove more GCC FE build stuff.
Chad Rosier [Sun, 26 Feb 2012 22:26:37 +0000 (22:26 +0000)]
Remove more GCC FE build stuff.

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

12 years agoInstalling the GCC front end is no longer supported.
Chad Rosier [Sun, 26 Feb 2012 22:17:05 +0000 (22:17 +0000)]
Installing the GCC front end is no longer supported.

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

12 years agoCleanup the LLVM Getting Started page.
Chad Rosier [Sun, 26 Feb 2012 22:12:59 +0000 (22:12 +0000)]
Cleanup the LLVM Getting Started page.

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

12 years agoAdd href to clang in overview.
Chad Rosier [Sun, 26 Feb 2012 21:34:02 +0000 (21:34 +0000)]
Add href to clang in overview.

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

12 years agoRemove references to llvm-gcc from overview and tutorial.
Chad Rosier [Sun, 26 Feb 2012 21:31:25 +0000 (21:31 +0000)]
Remove references to llvm-gcc from overview and tutorial.

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

12 years agoAdd support for random constant vectors.
Nadav Rotem [Sun, 26 Feb 2012 13:56:18 +0000 (13:56 +0000)]
Add support for random constant vectors.

Patch by Joey Gouly.

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

12 years agoStyle fix: Remove unneeded parentheses.
Nadav Rotem [Sun, 26 Feb 2012 12:34:17 +0000 (12:34 +0000)]
Style fix: Remove unneeded parentheses.

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

12 years agoFix a bug in the code that checks if a store value is a vector of i1s
Nadav Rotem [Sun, 26 Feb 2012 12:00:22 +0000 (12:00 +0000)]
Fix a bug in the code that checks if a store value is a vector of i1s

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

12 years agoFix compilation on MSVC. Rename "_BB" to "Block"
Nadav Rotem [Sun, 26 Feb 2012 08:59:25 +0000 (08:59 +0000)]
Fix compilation on MSVC. Rename "_BB" to "Block"

Thanks zygoloid.

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

12 years agofix a copy-and-paste error in the docs
Nadav Rotem [Sun, 26 Feb 2012 08:43:43 +0000 (08:43 +0000)]
fix a copy-and-paste error in the docs

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

12 years agoAdd a random .LL file generator to stress-test different llvm components.
Nadav Rotem [Sun, 26 Feb 2012 08:35:53 +0000 (08:35 +0000)]
Add a random .LL file generator to stress-test different llvm components.

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

12 years agoAdd testcase for the previous commit.
Rafael Espindola [Sun, 26 Feb 2012 05:49:57 +0000 (05:49 +0000)]
Add testcase for the previous commit.

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

12 years agoDon't call dominates on unreachable instructions. Should fix the dragonegg
Rafael Espindola [Sun, 26 Feb 2012 05:30:08 +0000 (05:30 +0000)]
Don't call dominates on unreachable instructions. Should fix the dragonegg
build. Testcase is still reducing.

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

12 years agoDefault TargetData alignment information for 128-bit floating-point types.
Hal Finkel [Sun, 26 Feb 2012 04:13:31 +0000 (04:13 +0000)]
Default TargetData alignment information for 128-bit floating-point types.

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

12 years agoAnd update the comment...
Rafael Espindola [Sun, 26 Feb 2012 02:36:56 +0000 (02:36 +0000)]
And update the comment...

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

12 years agoEnable the assert that got all this dominator work started.
Rafael Espindola [Sun, 26 Feb 2012 02:29:18 +0000 (02:29 +0000)]
Enable the assert that got all this dominator work started.

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

12 years agoUse the DT dominates function in the verifier.
Rafael Espindola [Sun, 26 Feb 2012 02:23:37 +0000 (02:23 +0000)]
Use the DT dominates function in the verifier.

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

12 years agoChange the implementation of dominates(inst, inst) to one based on what the
Rafael Espindola [Sun, 26 Feb 2012 02:19:19 +0000 (02:19 +0000)]
Change the implementation of dominates(inst, inst) to one based on what the
verifier does. This correctly handles invoke.
Thanks to Duncan, Andrew and Chris for the comments.
Thanks to Joerg for the early testing.

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

12 years agoDon't call dominates on unreachable instructions.
Rafael Espindola [Sun, 26 Feb 2012 02:14:25 +0000 (02:14 +0000)]
Don't call dominates on unreachable instructions.

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

12 years agoReinstate the optimization from r151449 with a fix to not turn 'gep %x' into
Nick Lewycky [Sun, 26 Feb 2012 02:09:49 +0000 (02:09 +0000)]
Reinstate the optimization from r151449 with a fix to not turn 'gep %x' into
'gep null' when the icmp predicate is unsigned (or is signed without inbounds).

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

12 years agoDon't call dominates on unreachable instructions.
Rafael Espindola [Sun, 26 Feb 2012 01:50:14 +0000 (01:50 +0000)]
Don't call dominates on unreachable instructions.

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

12 years agoRoll these back to r151448 until I figure out how they're breaking
Nick Lewycky [Sat, 25 Feb 2012 23:01:19 +0000 (23:01 +0000)]
Roll these back to r151448 until I figure out how they're breaking
MultiSource/Applications/lua.

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

12 years agoAn argument and a local identified object (eg. a noalias call) could turn out
Nick Lewycky [Sat, 25 Feb 2012 20:19:07 +0000 (20:19 +0000)]
An argument and a local identified object (eg. a noalias call) could turn out
equal if both are null. In the test, scope type %t and global @y by adding a
'gep' prefix to them.

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

12 years agoFix five-letter typo in comment.
Nick Lewycky [Sat, 25 Feb 2012 19:12:58 +0000 (19:12 +0000)]
Fix five-letter typo in comment.

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

12 years agoTeach instsimplify to be more aggressive when analyzing comparisons of pointers
Nick Lewycky [Sat, 25 Feb 2012 19:07:42 +0000 (19:07 +0000)]
Teach instsimplify to be more aggressive when analyzing comparisons of pointers
by using llvm::isIdentifiedObject. Also teach it to handle GEPs that have
the same base pointer and constant operands. Fixes PR11238!

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

12 years agoMove isKnownNonNull from private implementation detail of BasicAA to a public
Nick Lewycky [Sat, 25 Feb 2012 10:56:28 +0000 (10:56 +0000)]
Move isKnownNonNull from private implementation detail of BasicAA to a public
function that others can use, next to llvm::isIdentifiedObject.

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

12 years agoRemove spurious emacs mode marker.
Nick Lewycky [Sat, 25 Feb 2012 07:20:06 +0000 (07:20 +0000)]
Remove spurious emacs mode marker.

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

12 years agoRevert r151278, breaks static linking.
Hal Finkel [Sat, 25 Feb 2012 03:40:11 +0000 (03:40 +0000)]
Revert r151278, breaks static linking.

Reverting this because it breaks static linking on ppc64. Specifically, it may be linkonce_odr functions that are the problem.
With this patch, if you link statically, calls to some functions end up calling their descriptor addresses instead
of calling to their entry points. This causes the execution to fail with SIGILL (b/c the descriptor address just
has some pointers, not code).

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

12 years agoTarget/X86: Fix assertion failures and warnings caused by r151382 _ftol2 lowering...
NAKAMURA Takumi [Sat, 25 Feb 2012 03:37:25 +0000 (03:37 +0000)]
Target/X86: Fix assertion failures and warnings caused by r151382 _ftol2 lowering for i386-*-win32 targets. Patch by Joe Groff.

[Joe Groff] Hi everyone. My previous patch applied as r151382 had a few problems:
Clang raised a warning, and X86 LowerOperation would assert out for
fptoui f64 to i32 because it improperly lowered to an illegal
BUILD_PAIR. Here's a patch that addresses these issues. Let me know if
any other changes are necessary. Thanks.

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

12 years agoAdd comment.
Chad Rosier [Sat, 25 Feb 2012 03:07:57 +0000 (03:07 +0000)]
Add comment.

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

12 years agoAdd support for disabling llvm.lifetime intrinsics in the AlwaysInliner. These
Chad Rosier [Sat, 25 Feb 2012 02:56:01 +0000 (02:56 +0000)]
Add support for disabling llvm.lifetime intrinsics in the AlwaysInliner. These
are optimization hints, but at -O0 we're not optimizing.  This becomes a problem
when the alwaysinline attribute is abused.
rdar://10921594

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

12 years agoMake the peephole optimizer clear kill flags on a vreg if it's about to add new
Lang Hames [Sat, 25 Feb 2012 02:01:00 +0000 (02:01 +0000)]
Make the peephole optimizer clear kill flags on a vreg if it's about to add new
uses of the vreg, since the old kills may no longer be valid.  This was causing
-verify-machineinstrs to complain about uses after kills, and could potentially
have been causing subtle register allocation issues, but I haven't come across a
test case yet.

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

12 years agoFix indentation.
Chad Rosier [Sat, 25 Feb 2012 01:10:59 +0000 (01:10 +0000)]
Fix indentation.

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

12 years agoGrammar-o.
Eric Christopher [Sat, 25 Feb 2012 01:02:44 +0000 (01:02 +0000)]
Grammar-o.

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

12 years agoFixed typo.
Lang Hames [Sat, 25 Feb 2012 00:46:38 +0000 (00:46 +0000)]
Fixed typo.

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

12 years agoAdd definitions of floating point multiply add/sub and negative multiply
Akira Hatanaka [Sat, 25 Feb 2012 00:21:52 +0000 (00:21 +0000)]
Add definitions of floating point multiply add/sub and negative multiply
add/sub instructions.

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

12 years agoAdd an option to use a virtual register as the global base register instead of
Akira Hatanaka [Fri, 24 Feb 2012 22:34:47 +0000 (22:34 +0000)]
Add an option to use a virtual register as the global base register instead of
reserving a physical register ($gp or $28) for that purpose.

This will completely eliminate loads that restore the value of $gp after every
function call, if the register allocator assigns a callee-saved register, or
eliminate unnecessary loads if it assigns a temporary register.

example:

.cpload $25       // set $gp.
...
.cprestore 16     // store $gp to stack slot 16($sp).
...
jalr $25          // function call. clobbers $gp.
lw $gp, 16($sp)   // not emitted if callee-saved reg is chosen.
...
lw $2, 4($gp)
...
jalr $25          // function call.
lw $gp, 16($sp)   // not emitted if $gp is not live after this instruction.
...

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

12 years agoRemove unused cl::opt, make another opt static.
Benjamin Kramer [Fri, 24 Feb 2012 22:09:25 +0000 (22:09 +0000)]
Remove unused cl::opt, make another opt static.

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

12 years agoAdd missing static
Jakob Stoklund Olesen [Fri, 24 Feb 2012 21:52:44 +0000 (21:52 +0000)]
Add missing static

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

12 years agoFix undefined behavior.
Ahmed Charles [Fri, 24 Feb 2012 19:06:15 +0000 (19:06 +0000)]
Fix undefined behavior.

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

12 years agoThumb2 asm aliases for wide bitwise w/ immediate instructions.
Jim Grosbach [Fri, 24 Feb 2012 19:06:05 +0000 (19:06 +0000)]
Thumb2 asm aliases for wide bitwise w/ immediate instructions.

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

12 years agofix PR12075, a regression in a recent transform I added. In unreachable code, gep...
Chris Lattner [Fri, 24 Feb 2012 19:01:58 +0000 (19:01 +0000)]
fix PR12075, a regression in a recent transform I added.  In unreachable code, gep chains can be infinite.  Just like "stripPointerCasts", use a set to keep track of visited instructions so we don't recurse infinitely.

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

12 years agoAdd WIN_FTOL_* psudo-instructions to model the unique calling convention
Michael J. Spencer [Fri, 24 Feb 2012 19:01:22 +0000 (19:01 +0000)]
Add WIN_FTOL_* psudo-instructions to model the unique calling convention
used by the Win32 _ftol2 runtime function. Patch by Joe Groff!

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

12 years agoAdd a -stress-regalloc=<N> option.
Jakob Stoklund Olesen [Fri, 24 Feb 2012 18:34:20 +0000 (18:34 +0000)]
Add a -stress-regalloc=<N> option.

This will limit all register classes to N registers in order to stress
test register allocation.

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

12 years agoX11/X2 loads around indirect calls on ppc64 should not be deleted.
Hal Finkel [Fri, 24 Feb 2012 17:54:01 +0000 (17:54 +0000)]
X11/X2 loads around indirect calls on ppc64 should not be deleted.

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

12 years agoDon't crash when a glue node contains an internal CopyToReg
Hal Finkel [Fri, 24 Feb 2012 17:53:59 +0000 (17:53 +0000)]
Don't crash when a glue node contains an internal CopyToReg

This is necessary to support the existing ppc lowering code for indirect calls.
Fixes PR12071.

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

12 years agoTeach GVN that x+y is the same as y+x and that x<y is the same as y>x.
Duncan Sands [Fri, 24 Feb 2012 15:16:31 +0000 (15:16 +0000)]
Teach GVN that x+y is the same as y+x and that x<y is the same as y>x.

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

12 years agoSDAGBuilder: Remove register sets that were never read and prune dead code surroundin...
Benjamin Kramer [Fri, 24 Feb 2012 14:01:17 +0000 (14:01 +0000)]
SDAGBuilder: Remove register sets that were never read and prune dead code surrounding it.

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

12 years agotest commit. removing unnecessary whitespace.
Kristof Beyls [Fri, 24 Feb 2012 13:52:45 +0000 (13:52 +0000)]
test commit. removing unnecessary whitespace.

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

12 years agotest/CodeGen/X86/2012-02-23-mmx-inlineasm.ll: Fixup to add -march=x86.
NAKAMURA Takumi [Fri, 24 Feb 2012 13:29:50 +0000 (13:29 +0000)]
test/CodeGen/X86/2012-02-23-mmx-inlineasm.ll: Fixup to add -march=x86.

-mcpu does not choose arch automatically, on non-x86 hosts.

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

12 years agoRemove dead code.
Richard Osborne [Fri, 24 Feb 2012 11:49:08 +0000 (11:49 +0000)]
Remove dead code.

Patch by Ahmed Charles

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

12 years agoWorkaround a miscompilation by gcc-4.3 that showed up as a failure
Duncan Sands [Fri, 24 Feb 2012 09:01:34 +0000 (09:01 +0000)]
Workaround a miscompilation by gcc-4.3 that showed up as a failure
of the StringRef.Split2 unittest on 32 bit machines.

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

12 years agoScheduleDAGInstrs.h:155: warning: suggest parentheses around `&&' within `||'.
Nick Lewycky [Fri, 24 Feb 2012 07:59:05 +0000 (07:59 +0000)]
ScheduleDAGInstrs.h:155: warning: suggest parentheses around `&&' within `||'.

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