]> granicus.if.org Git - llvm/log
llvm
12 years agoMerge in 156319 156837 156838. release_31 origin/release_31
Bill Wendling [Tue, 15 May 2012 22:06:08 +0000 (22:06 +0000)]
Merge in 156319 156837 156838.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@156863 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoUpdate.
Bill Wendling [Tue, 15 May 2012 21:58:06 +0000 (21:58 +0000)]
Update.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@156862 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd some more release notes for Clang
Douglas Gregor [Tue, 15 May 2012 03:13:37 +0000 (03:13 +0000)]
Add some more release notes for Clang

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@156799 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoUpdate.
Bill Wendling [Sun, 13 May 2012 10:04:01 +0000 (10:04 +0000)]
Update.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@156734 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agos/3.1svn/3.1/g
Bill Wendling [Fri, 11 May 2012 20:48:57 +0000 (20:48 +0000)]
s/3.1svn/3.1/g

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@156640 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoNew Revision: 155749
Bill Wendling [Tue, 8 May 2012 07:58:10 +0000 (07:58 +0000)]
New Revision: 155749

URL: http://llvm.org/viewvc/llvm-project?rev=155749&view=rev
Log:
Reapply 155668: Fix the SD scheduler to avoid gluing the same node twice.

This time, also fix the caller of AddGlue to properly handle
incomplete chains. AddGlue had failure modes, but shamefully hid them
from its caller. It's luck ran out.

Fixes rdar://11314175: BuildSchedUnits assert.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@156376 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155984:
Bill Wendling [Wed, 2 May 2012 10:00:50 +0000 (10:00 +0000)]
Merging r155984:
------------------------------------------------------------------------
r155984 | void | 2012-05-02 02:59:45 -0700 (Wed, 02 May 2012) | 4 lines

The value held in the vector may be RAUW'ed by some of the canonicalization
methods. Use a weak value handle to keep up with this.
PR12245

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155985 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155954:
Bill Wendling [Tue, 1 May 2012 22:51:49 +0000 (22:51 +0000)]
Merging r155954:
------------------------------------------------------------------------
r155954 | void | 2012-05-01 15:50:45 -0700 (Tue, 01 May 2012) | 3 lines

Strip the pointer casts off of allocas so that the selection DAG can find them.
PR10799

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155955 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155902:
Bill Wendling [Tue, 1 May 2012 08:28:53 +0000 (08:28 +0000)]
Merging r155902:
------------------------------------------------------------------------
r155902 | void | 2012-05-01 01:27:43 -0700 (Tue, 01 May 2012) | 7 lines

Change the PassManager from a reference to a pointer.

The TargetPassManager's default constructor wants to initialize the PassManager
to 'null'. But it's illegal to bind a null reference to a null l-value. Make the
ivar a pointer instead.
PR12468

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155903 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155895:
Bill Wendling [Tue, 1 May 2012 07:58:54 +0000 (07:58 +0000)]
Merging r155895:
------------------------------------------------------------------------
r155895 | eliben | 2012-04-30 23:15:40 -0700 (Mon, 30 Apr 2012) | 4 lines

Removed examples of stack frame inspection which no longer work for old JIT.
Added an example of MCJIT-based debugging.

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155901 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155844:
Bill Wendling [Mon, 30 Apr 2012 22:36:07 +0000 (22:36 +0000)]
Merging r155844:
------------------------------------------------------------------------
r155844 | spop | 2012-04-30 13:06:58 -0700 (Mon, 30 Apr 2012) | 8 lines

fix typo

Thanks to "Gabor Greif" <ggreif@gmail.com> for reporting this problem.

The configure flag should be --with-default-sysroot as documented, and
not --with-sysroot.  The reason we don't want to define --with-sysroot
is that GCC has a configure flag by that name and it has a different
semantics.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155852 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoRename to match coding conventions.
Bill Wendling [Mon, 30 Apr 2012 17:58:59 +0000 (17:58 +0000)]
Rename to match coding conventions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155834 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155817:
Bill Wendling [Mon, 30 Apr 2012 17:48:14 +0000 (17:48 +0000)]
Merging r155817:
------------------------------------------------------------------------
r155817 | void | 2012-04-30 03:44:54 -0700 (Mon, 30 Apr 2012) | 9 lines

Second attempt at PR12573:

Allow the "SplitCriticalEdge" function to split the edge to a landing pad. If
the pass is *sure* that it thinks it knows what it's doing, then it may go ahead
and specify that the landing pad can have its critical edge split. The loop
unswitch pass is one of these passes. It will split the critical edges of all
edges coming from a loop to a landing pad not within the loop. Doing so will
retain important loop analysis information, such as loop simplify.

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155833 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155813:
Bill Wendling [Mon, 30 Apr 2012 17:41:42 +0000 (17:41 +0000)]
Merging r155813:
------------------------------------------------------------------------
r155813 | void | 2012-04-30 02:23:48 -0700 (Mon, 30 Apr 2012) | 1 line

Remove hack from r154987. The problem persists even with it, so it's not even a good hack.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155831 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155166:
Bill Wendling [Mon, 30 Apr 2012 17:40:59 +0000 (17:40 +0000)]
Merging r155166:
------------------------------------------------------------------------
r155166 | void | 2012-04-19 16:31:07 -0700 (Thu, 19 Apr 2012) | 1 line

Put this expensive check below the less expensive ones.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155830 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155809:
Bill Wendling [Mon, 30 Apr 2012 17:12:42 +0000 (17:12 +0000)]
Merging r155809:
------------------------------------------------------------------------
r155809 | rafael | 2012-04-29 20:53:06 -0700 (Sun, 29 Apr 2012) | 2 lines

Make sure HoistInsertPosition finds a position that is dominated by all
inputs.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155828 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155818:
Bill Wendling [Mon, 30 Apr 2012 17:09:46 +0000 (17:09 +0000)]
Merging r155818:
------------------------------------------------------------------------
r155818 | baldrick | 2012-04-30 04:56:58 -0700 (Mon, 30 Apr 2012) | 3 lines

Just mark the sign bit as known zero, rather than any other irrelevant bits
known zero in the LHS.  Fixes PR12541.

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155827 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155668:
Bill Wendling [Thu, 26 Apr 2012 23:04:56 +0000 (23:04 +0000)]
Merging r155668:
------------------------------------------------------------------------
r155668 | atrick | 2012-04-26 14:48:25 -0700 (Thu, 26 Apr 2012) | 8 lines

Fix the SD scheduler to avoid gluing the same node twice.

DAGCombine strangeness may result in multiple loads from the same
offset. They both may try to glue themselves to another load. We could
insist that the redundant loads glue themselves to each other, but the
beter fix is to bail out from bad gluing at the time we detect it.

Fixes rdar://11314175: BuildSchedUnits assert.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155672 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155536:
Bill Wendling [Wed, 25 Apr 2012 18:27:12 +0000 (18:27 +0000)]
Merging r155536:
------------------------------------------------------------------------
r155536 | lattner | 2012-04-24 23:37:20 -0700 (Tue, 24 Apr 2012) | 3 lines

openbsd doesn't support soname, patch by Brad Smith!

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155574 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155466:
Bill Wendling [Tue, 24 Apr 2012 23:40:05 +0000 (23:40 +0000)]
Merging r155466:
------------------------------------------------------------------------
r155466 | chandlerc | 2012-04-24 11:42:47 -0700 (Tue, 24 Apr 2012) | 17 lines

Fix a crash on valid (if UB) bitcode that is produced for some global
constants in C++11 mode. I have no idea why it required such particular
circumstances to get here, the code seems clearly to rely upon unchecked
assumptions.

Specifically, when we decide to form an index into a struct type, we may
have gone through (at least one) zero-length array indexing round, which
would have left the offset un-adjusted, and thus not necessarily valid
for use when indexing the struct type.

This is just an canonicalization step, so the correct thing is to refuse
to canonicalize nonsensical GEPs of this form. Implemented, and test
case added.

Fixes PR12642. Pair debugged and coded with Richard Smith. =] I credit
him with most of the debugging, and preventing me from writing the wrong
code.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155506 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155287:
Bill Wendling [Mon, 23 Apr 2012 18:34:50 +0000 (18:34 +0000)]
Merging r155287:
------------------------------------------------------------------------
r155287 | chapuni | 2012-04-21 08:31:45 -0700 (Sat, 21 Apr 2012) | 3 lines

llvm/lib/Target: [PR12611] Add "llvm/Support/raw_ostream.h" for Debug build on MSVC.

Thanks to Andy Gibbs, to report the issue.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155378 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155286:
Bill Wendling [Mon, 23 Apr 2012 18:34:22 +0000 (18:34 +0000)]
Merging r155286:
------------------------------------------------------------------------
r155286 | chapuni | 2012-04-21 08:31:36 -0700 (Sat, 21 Apr 2012) | 1 line

HexagonISelLowering.cpp: Reorder #includes.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155377 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155288:
Bill Wendling [Mon, 23 Apr 2012 18:33:11 +0000 (18:33 +0000)]
Merging r155288:
------------------------------------------------------------------------
r155288 | d0k | 2012-04-21 09:05:27 -0700 (Sat, 21 Apr 2012) | 6 lines

Remove unused PointerLikeTypeTraits for IndexListEntry.

It set NumLowBitAvailable = 3 which may not be true on all platforms.  We only
ever use 2 bits (the default) so this assumption can be safely removed

Should fix PR12612.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155375 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155342:
Bill Wendling [Mon, 23 Apr 2012 18:32:40 +0000 (18:32 +0000)]
Merging r155342:
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155374 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155285:
Bill Wendling [Mon, 23 Apr 2012 06:46:30 +0000 (06:46 +0000)]
Merging r155285:
------------------------------------------------------------------------
r155285 | chapuni | 2012-04-21 07:51:02 -0700 (Sat, 21 Apr 2012) | 1 line

CMake: Enable LLVM_COMPILER_JOBS on all MS IDEs. We don't support older environments than VS9.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155335 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155284:
Bill Wendling [Mon, 23 Apr 2012 06:45:46 +0000 (06:45 +0000)]
Merging r155284:
------------------------------------------------------------------------
r155284 | chapuni | 2012-04-21 07:50:56 -0700 (Sat, 21 Apr 2012) | 1 line

CMake: Prune redundant LLVM_COMPILER_JOBS from llvm/CMakeLists.txt. HandleLLVMOptions.cmake has it.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155334 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155307:
Bill Wendling [Sun, 22 Apr 2012 07:23:44 +0000 (07:23 +0000)]
Merging r155307:
------------------------------------------------------------------------
r155307 | void | 2012-04-22 00:23:04 -0700 (Sun, 22 Apr 2012) | 1 line

Remove some potential warnings about variables used uninitialized.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155308 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoInline a variable that's used only in an assert.
Bill Wendling [Sun, 22 Apr 2012 07:16:56 +0000 (07:16 +0000)]
Inline a variable that's used only in an assert.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155306 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging r155230:
Bill Wendling [Fri, 20 Apr 2012 20:32:47 +0000 (20:32 +0000)]
Merging r155230:
------------------------------------------------------------------------
r155230 | void | 2012-04-20 13:31:44 -0700 (Fri, 20 Apr 2012) | 1 line

Modify the sh-bang to run out-of-the-box for FreeBSDes.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155231 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd a flag to rebranch if we need to.
Bill Wendling [Wed, 18 Apr 2012 21:38:12 +0000 (21:38 +0000)]
Add a flag to rebranch if we need to.

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

12 years agoThis reverts a long string of commits to the Hexagon backend. These
Chandler Carruth [Wed, 18 Apr 2012 21:31:19 +0000 (21:31 +0000)]
This reverts a long string of commits to the Hexagon backend. These
commits have had several major issues pointed out in review, and those
issues are not being addressed in a timely fashion. Furthermore, this
was all committed leading up to the v3.1 branch, and we don't need piles
of code with outstanding issues in the branch.

It is possible that not all of these commits were necessary to revert to
get us back to a green state, but I'm going to let the Hexagon
maintainer sort that out. They can recommit, in order, after addressing
the feedback.

Reverted commits, with some notes:

Primary commit r154616: HexagonPacketizer
  - There are lots of review comments here. This is the primary reason
    for reverting. In particular, it introduced large amount of warnings
    due to a bad construct in tablegen.
  - Follow-up commits that should be folded back into this when
    reposting:
    - r154622: CMake fixes
    - r154660: Fix numerous build warnings in release builds.
  - Please don't resubmit this until the three commits above are
    included, and the issues in review addressed.

Primary commit r154695: Pass to replace transfer/copy ...
  - Reverted to minimize merge conflicts. I'm not aware of specific
    issues with this patch.

Primary commit r154703: New Value Jump.
  - Primarily reverted due to merge conflicts.
  - Follow-up commits that should be folded back into this when
    reposting:
    - r154703: Remove iostream usage
    - r154758: Fix CMake builds
    - r154759: Fix build warnings in release builds
  - Please incorporate these fixes and and review feedback before
    resubmitting.

Primary commit r154829: Hexagon V5 (floating point) support.
  - Primarily reverted due to merge conflicts.
  - Follow-up commits that should be folded back into this when
    reposting:
    - r154841: Remove unused variable (fixing build warnings)

There are also accompanying Clang commits that will be reverted for
consistency.

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

12 years agoLiveIntervalUpdate validators weren't recorded after the calls to std::for_each....
Pete Cooper [Wed, 18 Apr 2012 20:29:17 +0000 (20:29 +0000)]
LiveIntervalUpdate validators weren't recorded after the calls to std::for_each.  Turns out std::for_each doesn't update the variable passed in for the functor but instead copy constructs a new one.

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

12 years agoDocument that StringMap iteration order is non-deterministic.
Jim Grosbach [Wed, 18 Apr 2012 20:28:55 +0000 (20:28 +0000)]
Document that StringMap iteration order is non-deterministic.

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

12 years agoRevert "Replace some uses of std:map<std::string,...> with StringMap."
Jim Grosbach [Wed, 18 Apr 2012 20:24:49 +0000 (20:24 +0000)]
Revert "Replace some uses of std:map<std::string,...> with StringMap."

StringMap iterators are not deterministic, and that's more important
here than speed or memory.

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

12 years agotblgen: remove duplicated newlines.
Benjamin Kramer [Wed, 18 Apr 2012 19:22:47 +0000 (19:22 +0000)]
tblgen: remove duplicated newlines.

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

12 years agoReplace some uses of std:map<std::string,...> with StringMap.
Jim Grosbach [Wed, 18 Apr 2012 19:13:59 +0000 (19:13 +0000)]
Replace some uses of std:map<std::string,...> with StringMap.

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

12 years agoSourceMgr: Colorize diagnostics.
Benjamin Kramer [Wed, 18 Apr 2012 19:04:15 +0000 (19:04 +0000)]
SourceMgr: Colorize diagnostics.

Same color scheme as clang uses. The colors are only enabled if the output is a tty.

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

12 years agoUse SmallVector for the requirements on an InstAlias.
Jim Grosbach [Wed, 18 Apr 2012 19:02:43 +0000 (19:02 +0000)]
Use SmallVector for the requirements on an InstAlias.

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

12 years agoTidy up. Formatting.
Jim Grosbach [Wed, 18 Apr 2012 18:56:33 +0000 (18:56 +0000)]
Tidy up. Formatting.

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

12 years agoMark instruction classes ArithLogicR, ArithLogicI and LoadUpper as isRematerializable.
Akira Hatanaka [Wed, 18 Apr 2012 18:52:10 +0000 (18:52 +0000)]
Mark instruction classes ArithLogicR, ArithLogicI and LoadUpper as isRematerializable.

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

12 years agoDelete blank line.
Akira Hatanaka [Wed, 18 Apr 2012 18:47:17 +0000 (18:47 +0000)]
Delete blank line.

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

12 years agoMove a few more warnings to use PrintWarning().
Jim Grosbach [Wed, 18 Apr 2012 18:39:31 +0000 (18:39 +0000)]
Move a few more warnings to use PrintWarning().

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

12 years agoTidy up. No need for a Twine here, as it's just constants.
Jim Grosbach [Wed, 18 Apr 2012 18:39:27 +0000 (18:39 +0000)]
Tidy up. No need for a Twine here, as it's just constants.

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

12 years agoFormatting.
Jim Grosbach [Wed, 18 Apr 2012 18:39:23 +0000 (18:39 +0000)]
Formatting.

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

12 years agoTidy up. Add a '.' at the end of the sentence.
Jim Grosbach [Wed, 18 Apr 2012 18:39:19 +0000 (18:39 +0000)]
Tidy up. Add a '.' at the end of the sentence.

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

12 years agoFix copy/paste-o.
Jim Grosbach [Wed, 18 Apr 2012 18:09:53 +0000 (18:09 +0000)]
Fix copy/paste-o.

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

12 years agoClean up warning text. Remove extraneous prefix.
Jim Grosbach [Wed, 18 Apr 2012 18:09:50 +0000 (18:09 +0000)]
Clean up warning text.  Remove extraneous prefix.

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

12 years agoTableGen use PrintWarning rather than fprintf(stderr,...) for warnings.
Jim Grosbach [Wed, 18 Apr 2012 17:46:41 +0000 (17:46 +0000)]
TableGen use PrintWarning rather than fprintf(stderr,...) for warnings.

That way we get source line number information from the diagnostics.

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

12 years agoTidy up. Trailing whitespace.
Jim Grosbach [Wed, 18 Apr 2012 17:46:37 +0000 (17:46 +0000)]
Tidy up. Trailing whitespace.

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

12 years agoTableGen add warning diagnostic helper functions.
Jim Grosbach [Wed, 18 Apr 2012 17:46:31 +0000 (17:46 +0000)]
TableGen add warning diagnostic helper functions.

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

12 years agoFileCheckize
Jakob Stoklund Olesen [Wed, 18 Apr 2012 17:01:26 +0000 (17:01 +0000)]
FileCheckize

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

12 years agoNobody likes shifty instructions, but that was a bit strong.
Jakob Stoklund Olesen [Wed, 18 Apr 2012 16:44:44 +0000 (16:44 +0000)]
Nobody likes shifty instructions, but that was a bit strong.

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

12 years agoAdded support for disassembling unpredictable swp/swpb ARM instructions.
Silviu Baranga [Wed, 18 Apr 2012 14:18:57 +0000 (14:18 +0000)]
Added support for disassembling unpredictable swp/swpb ARM instructions.

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

12 years agoFix the bahavior of the disassembler when decoding unpredictable mrs instructions...
Silviu Baranga [Wed, 18 Apr 2012 14:09:07 +0000 (14:09 +0000)]
Fix the bahavior of the disassembler when decoding unpredictable mrs instructions on ARM. Now the diasassembler emmits warnings instead of errors.

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

12 years agoAdded support for unpredictable mcrr/mcrr2/mrrc/mrrc2 ARM instruction in the disassem...
Silviu Baranga [Wed, 18 Apr 2012 13:12:50 +0000 (13:12 +0000)]
Added support for unpredictable mcrr/mcrr2/mrrc/mrrc2 ARM instruction in the disassembler. Since the upredicability conditions are complex, C++ code was added to handle them.

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

12 years agoFixed decoding for the ARM cdp2 instruction. The restriction on the coprocessor numbe...
Silviu Baranga [Wed, 18 Apr 2012 13:02:55 +0000 (13:02 +0000)]
Fixed decoding for the ARM cdp2 instruction. The restriction on the coprocessor number was removed for this instruction.

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

12 years agoAdd suport for unpredicatble cases of the cmp, tst, teq and cmnz ARM instructions...
Silviu Baranga [Wed, 18 Apr 2012 12:48:43 +0000 (12:48 +0000)]
Add suport for unpredicatble cases of the cmp, tst, teq and cmnz ARM instructions in the disassembler.

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

12 years agoSmallPtrSet: Reuse DenseMapInfo's pointer hash function instead of inventing a bad...
Benjamin Kramer [Wed, 18 Apr 2012 10:37:32 +0000 (10:37 +0000)]
SmallPtrSet: Reuse DenseMapInfo's pointer hash function instead of inventing a bad one ourselves.

DenseMap's hash function uses slightly more entropy and reduces hash collisions
significantly.  I also experimented with Hashing.h, but it didn't gave a lot of
improvement while being much more expensive to compute.

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

12 years agoMove the JIT flags from llc to lli. These flags showed up as part of moving
Nick Lewycky [Wed, 18 Apr 2012 08:34:12 +0000 (08:34 +0000)]
Move the JIT flags from llc to lli. These flags showed up as part of moving
backend flags in TargetOptions.h into their own class in r145714.

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

12 years agoA bit of cleanup in the TestingGuide doc - dg.exp files no longer exist
Eli Bendersky [Wed, 18 Apr 2012 08:02:25 +0000 (08:02 +0000)]
A bit of cleanup in the TestingGuide doc - dg.exp files no longer exist

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

12 years agoSome formatting and grammar fixes in the FileCheck documentation
Eli Bendersky [Wed, 18 Apr 2012 07:44:03 +0000 (07:44 +0000)]
Some formatting and grammar fixes in the FileCheck documentation

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

12 years agoUse a heavy hammer to fix PR12573.
Bill Wendling [Wed, 18 Apr 2012 06:00:09 +0000 (06:00 +0000)]
Use a heavy hammer to fix PR12573.

If the loop contains invoke instructions, whose unwind edge escapes the loop,
then don't try to unswitch the loop. Doing so may cause the unwind edge to be
split, which not only is non-trivial but doesn't preserve loop simplify
information.

Fixes PR12573

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

12 years agoRemove AVX vpermil intrinsics. I removed their uses from clang headers and builtins...
Craig Topper [Wed, 18 Apr 2012 05:24:00 +0000 (05:24 +0000)]
Remove AVX vpermil intrinsics. I removed their uses from clang headers and builtins a while back.

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

12 years agoloop-reduce: Add an early bailout to catch extremely large loops.
Andrew Trick [Wed, 18 Apr 2012 04:00:10 +0000 (04:00 +0000)]
loop-reduce: Add an early bailout to catch extremely large loops.

This introduces a threshold of 200 IV Users, which is very
conservative but should be sufficient to avoid serious compile time
sink or stack overflow. The llvm test-suite with LTO never exceeds 190
users per loop.

The bug doesn't relate to a specific type of loop. Checking in an
arbitrary giant loop as a unit test would be silly.

Fixes rdar://11262507.

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

12 years agofix error check in assert
Seth Cantrell [Wed, 18 Apr 2012 00:40:23 +0000 (00:40 +0000)]
fix error check in assert

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

12 years agoFileCheckify, un-XFAIL SimplifyLibCalls/floor test
Joe Groff [Wed, 18 Apr 2012 00:36:07 +0000 (00:36 +0000)]
FileCheckify, un-XFAIL SimplifyLibCalls/floor test
Fixes build on MSVC

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

12 years agoMove win32 SimplifyLibcall test under Transforms
Joe Groff [Wed, 18 Apr 2012 00:07:45 +0000 (00:07 +0000)]
Move win32 SimplifyLibcall test under Transforms

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

12 years agoC++ has newlines at the end of files (including include files).
David Blaikie [Tue, 17 Apr 2012 23:46:51 +0000 (23:46 +0000)]
C++ has newlines at the end of files (including include files).

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

12 years agofix pr12559: mark unavailable win32 math libcalls
Joe Groff [Tue, 17 Apr 2012 23:05:54 +0000 (23:05 +0000)]
fix pr12559: mark unavailable win32 math libcalls
also fix SimplifyLibCalls to use TLI rather than compile-time conditionals to enable optimizations on floor, ceil, round, rint, and nearbyint

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

12 years agoallow opt to take a -mtriple option
Joe Groff [Tue, 17 Apr 2012 23:05:48 +0000 (23:05 +0000)]
allow opt to take a -mtriple option

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

12 years agoFixes a problem in instruction selection with testing whether or not the
Joel Jones [Tue, 17 Apr 2012 22:23:10 +0000 (22:23 +0000)]
Fixes a problem in instruction selection with testing whether or not the
transformation:

(X op C1) ^ C2 --> (X op C1) & ~C2 iff (C1&C2) == C2

should be done.

This change has been tested:
 Using a debug+asserts build:
   on the specific test case that brought this bug to light
   make check-all
   lnt nt
   using this clang to build a release version of clang
 Using the release+asserts clang-with-clang build:
   on the specific test case that brought this bug to light
   make check-all
   lnt nt

Checking in because Evan wants it checked in.  Test case forthcoming after
scrubbing.

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

12 years agoTypo.
Chad Rosier [Tue, 17 Apr 2012 21:48:36 +0000 (21:48 +0000)]
Typo.

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

12 years agoSanity check error handling for TokenAlias.
Jim Grosbach [Tue, 17 Apr 2012 21:23:52 +0000 (21:23 +0000)]
Sanity check error handling for TokenAlias.

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

12 years agoFix incorrect call of resolveRelocation() for ARM ELF stub relocations.
Danil Malyshev [Tue, 17 Apr 2012 20:10:16 +0000 (20:10 +0000)]
Fix incorrect call of resolveRelocation() for ARM ELF stub relocations.

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

12 years agoplatform support for counting column widths and checking isprint
Seth Cantrell [Tue, 17 Apr 2012 20:03:03 +0000 (20:03 +0000)]
platform support for counting column widths and checking isprint

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

12 years agoDelete latter half of CMakeLists.txt.
Akira Hatanaka [Tue, 17 Apr 2012 18:18:09 +0000 (18:18 +0000)]
Delete latter half of CMakeLists.txt.

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

12 years agoAdd disassembler to MIPS.
Akira Hatanaka [Tue, 17 Apr 2012 18:03:21 +0000 (18:03 +0000)]
Add disassembler to MIPS.

Patch by Vladimir Medic.

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

12 years agoGoodbye, JSONParser...
Manuel Klimek [Tue, 17 Apr 2012 17:21:17 +0000 (17:21 +0000)]
Goodbye, JSONParser...

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

12 years agoAdding operator== for document_iterator.
Manuel Klimek [Tue, 17 Apr 2012 16:38:41 +0000 (16:38 +0000)]
Adding operator== for document_iterator.

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

12 years agoForce cmov on test so block placement doesn't shuffle the code around.
Benjamin Kramer [Tue, 17 Apr 2012 13:55:23 +0000 (13:55 +0000)]
Force cmov on test so block placement doesn't shuffle the code around.

This made the test fail with -mcpu=generic (when building on a non-x86 host).

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

12 years agoRemove unused CCIfSubtarget.
Jay Foad [Tue, 17 Apr 2012 11:29:05 +0000 (11:29 +0000)]
Remove unused CCIfSubtarget.

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

12 years agoUnbreak the MSVC build, that next() thing again.
Francois Pichet [Tue, 17 Apr 2012 09:37:32 +0000 (09:37 +0000)]
Unbreak the MSVC build, that next() thing again.

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

12 years agoFix bad EXTRACT_SUBREG in instruction selection for extending-loads on NEON.
James Molloy [Tue, 17 Apr 2012 08:18:00 +0000 (08:18 +0000)]
Fix bad EXTRACT_SUBREG in instruction selection for extending-loads on NEON.

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

12 years agoRevert "SCEV: When expanding a GEP the final addition to the base pointer has NUW...
Benjamin Kramer [Tue, 17 Apr 2012 06:33:57 +0000 (06:33 +0000)]
Revert "SCEV: When expanding a GEP the final addition to the base pointer has NUW but not NSW."

This isn't right either, reverting for now.

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

12 years agoTest cases that assume layout should use -disable-code-place.
Andrew Trick [Tue, 17 Apr 2012 06:20:42 +0000 (06:20 +0000)]
Test cases that assume layout should use -disable-code-place.

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

12 years agoDon't decode vperm2i128 or vperm2f128 into a shuffle if bit 3 or 7 of the immediate...
Craig Topper [Tue, 17 Apr 2012 05:54:54 +0000 (05:54 +0000)]
Don't decode vperm2i128 or vperm2f128 into a shuffle if bit 3 or 7 of the immediate is set.

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

12 years agoDownload and build the compiler-rt project.
Bill Wendling [Tue, 17 Apr 2012 05:11:51 +0000 (05:11 +0000)]
Download and build the compiler-rt project.

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

12 years agoSlotIndexes used to store the index list in a crufty custom linked-list. I can't
Lang Hames [Tue, 17 Apr 2012 04:15:51 +0000 (04:15 +0000)]
SlotIndexes used to store the index list in a crufty custom linked-list. I can't
for the life of me remember why I wrote it this way, but I can't see any good
reason for it now. This patch replaces the custom linked list with an ilist.

This change should preserve the existing numberings exactly, so no generated code
should change (if it does, file a bug!).

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

12 years agoTypo in an unused field.
Andrew Trick [Tue, 17 Apr 2012 01:22:58 +0000 (01:22 +0000)]
Typo in an unused field.

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

12 years agoUpdate woefully stale credits entry. Everything listed there had been
Chandler Carruth [Tue, 17 Apr 2012 01:19:37 +0000 (01:19 +0000)]
Update woefully stale credits entry. Everything listed there had been
re-done by wiser souls.

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

12 years agoAdd a stub about the inline cost rewrite.
Chandler Carruth [Tue, 17 Apr 2012 01:13:53 +0000 (01:13 +0000)]
Add a stub about the inline cost rewrite.

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

12 years agoAdd a stub for block placement pass. This needs fleshing out w/ details
Chandler Carruth [Tue, 17 Apr 2012 01:10:35 +0000 (01:10 +0000)]
Add a stub for block placement pass. This needs fleshing out w/ details
about what folks should expect w.r.t. the new algorithm.

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

12 years agoDon't tag libcxx and libcxxabi since we don't release them just yet.
Bill Wendling [Tue, 17 Apr 2012 01:01:55 +0000 (01:01 +0000)]
Don't tag libcxx and libcxxabi since we don't release them just yet.

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

12 years agoFix ARM disassembly of VLD2 (single 2-element structure to all lanes)
Kevin Enderby [Tue, 17 Apr 2012 00:49:27 +0000 (00:49 +0000)]
Fix ARM disassembly of VLD2 (single 2-element structure to all lanes)
instructions with writebacks. And add test a case for all opcodes handed by
DecodeVLD2DupInstruction() in ARMDisassembler.cpp .

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

12 years agotemporarily XFAIL this test until post RA
Preston Gurd [Tue, 17 Apr 2012 00:21:35 +0000 (00:21 +0000)]
temporarily XFAIL this test until post RA
live-ins is properly enabled.

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

12 years agoTidy up. 80 columns.
Jim Grosbach [Tue, 17 Apr 2012 00:01:04 +0000 (00:01 +0000)]
Tidy up. 80 columns.

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

12 years agoTypo.
Eric Christopher [Mon, 16 Apr 2012 23:54:31 +0000 (23:54 +0000)]
Typo.

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

12 years agoMake comment here more clear.
Eric Christopher [Mon, 16 Apr 2012 23:54:23 +0000 (23:54 +0000)]
Make comment here more clear.

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

12 years agoDisable the atom scheduling test after r154874 broke it.
Chandler Carruth [Mon, 16 Apr 2012 23:11:39 +0000 (23:11 +0000)]
Disable the atom scheduling test after r154874 broke it.

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

12 years agoARM two-operand forms for vhadd and vhsub instructions.
Jim Grosbach [Mon, 16 Apr 2012 23:00:25 +0000 (23:00 +0000)]
ARM two-operand forms for vhadd and vhsub instructions.

rdar://11252521

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