Eric Christopher [Thu, 5 Aug 2010 20:04:36 +0000 (20:04 +0000)]
Handle the memory barrier pseudo that goes to nothing for the JIT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110371
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 5 Aug 2010 19:54:59 +0000 (19:54 +0000)]
Set hasSideEffects on the 64-bit no-sse memory barrier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110369
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 5 Aug 2010 19:27:37 +0000 (19:27 +0000)]
For local variables in functions with a frame pointer, use FP as a base
register for local access when it's closer to the stack slot being refererenced
than the stack pointer. Make sure to take into account any argument frame
SP adjustments that are in affect at the time.
rdar://
8256090
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110366
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 5 Aug 2010 19:00:21 +0000 (19:00 +0000)]
Fix indentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110363
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 5 Aug 2010 18:59:59 +0000 (18:59 +0000)]
Remove double-def checking from MachineVerifier, so a register does not have to
be killed before being redefined.
These checks are usually disabled, and usually fail when enabled. We de facto
allow live registers to be redefined without a kill, the corresponding
assertions in RegScavenger were removed long ago.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110362
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 5 Aug 2010 18:59:36 +0000 (18:59 +0000)]
Add an ARM RSCrr instruction for disassembly only.
Partial fix for PR7792.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110361
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 5 Aug 2010 18:36:20 +0000 (18:36 +0000)]
Be a little bit more specific about target for the memory barrier
instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110360
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 5 Aug 2010 18:34:30 +0000 (18:34 +0000)]
Handle the pseudo in MCInstLower.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110359
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 5 Aug 2010 18:23:43 +0000 (18:23 +0000)]
Add an ARM RSBrr instruction for disassembly only.
Partial fix for PR7792.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110358
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 5 Aug 2010 18:12:19 +0000 (18:12 +0000)]
Avoid using a live std::multimap iterator while editing the map. It looks like
we sometimes compare singular iterators, reported by ENABLE_EXPENSIVE_CHECKS.
This fixes PR7825.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110355
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 5 Aug 2010 17:04:15 +0000 (17:04 +0000)]
Move x86-specific tests out of test/Transforms/LoopStrengthReduce and
into test/CodeGen/X86, so that they aren't run when the x86 target is
not enabled.
Fix uglygep.ll to not be x86-specific.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110343
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 5 Aug 2010 16:26:32 +0000 (16:26 +0000)]
Revert bugpoint change due to buildbot breakage.
--- Reverse-merging r110333 into '.':
U tools/bugpoint/BugDriver.h
U tools/bugpoint/OptimizerDriver.cpp
U tools/bugpoint/bugpoint.cpp
U tools/bugpoint/BugDriver.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110341
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 5 Aug 2010 15:45:33 +0000 (15:45 +0000)]
tests: CodeGen/X86/GC tests require X86.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110338
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 5 Aug 2010 15:44:15 +0000 (15:44 +0000)]
tests: Mark MC/AsmParser tests as requiring x86 for now -- almost all of them
rely on using a specific x86 triple to test what they want to test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110337
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 5 Aug 2010 15:25:38 +0000 (15:25 +0000)]
Run opt instead of bugpoint itself.
Fixes PR753.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110333
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 5 Aug 2010 03:35:01 +0000 (03:35 +0000)]
check-lit was failing again on F13 64 bits :-(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110311
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Thu, 5 Aug 2010 03:04:21 +0000 (03:04 +0000)]
Silence a GCC warning about && and || without explicit parentheses. This
preserves the existing behavior, as it seems a concious choice to allow RS to
be null and BigStack marked true.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110307
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 5 Aug 2010 03:00:22 +0000 (03:00 +0000)]
Add const to compileProgram and to the various test functions in CrashDebugger.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110306
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Thu, 5 Aug 2010 02:22:51 +0000 (02:22 +0000)]
When building from git, add ref-id to PACKAGE_VERSION
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110301
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 5 Aug 2010 02:16:32 +0000 (02:16 +0000)]
Add a Module argument to the remaining runPasses methods and mark getContext
const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110300
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Thu, 5 Aug 2010 01:25:48 +0000 (01:25 +0000)]
New system for choosing CRT type on MSVC.
Is setted on a per build type basis. This is useful for generators
that comprise several build types, i.e. VC++ solutions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110296
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 5 Aug 2010 00:43:10 +0000 (00:43 +0000)]
Revert r110270 for now. It appears to uncover a memdep bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110293
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 5 Aug 2010 00:34:42 +0000 (00:34 +0000)]
ARM "rrx" shift operands do not have an immediate. PR7790.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110292
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 5 Aug 2010 00:29:04 +0000 (00:29 +0000)]
Make EmitProgressBitcode const and add a Module argument to runPasses. Use
that argument to simplify runPassesOn.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110291
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 23:44:23 +0000 (23:44 +0000)]
svn:ignore
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110284
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 23:43:55 +0000 (23:43 +0000)]
svn:ignore
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110283
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 23:37:55 +0000 (23:37 +0000)]
The trouble with testing for "ModRef" and "NoModRef" is that
one is a suffix of the other, and FileCheck accepts superstrings.
Adjust the output to avoid this problem.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110280
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 4 Aug 2010 23:36:02 +0000 (23:36 +0000)]
The lower invoke pass needs to have unreachable code elimination run after it
because it could create such things. This fixes a MingW buildbot test failure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110279
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 23:08:15 +0000 (23:08 +0000)]
Delete obsolete comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110277
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 4 Aug 2010 23:03:04 +0000 (23:03 +0000)]
Make x86-64 membarriers work without sse and clean up some of the
uses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110274
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 22:56:29 +0000 (22:56 +0000)]
The two-callsite form of AliasAnalysis::getModRefInfo is documented
to return Ref if the left callsite only reads memory read or written
by the right callsite; fix BasicAliasAnalysis to implement this.
Add AliasAnalysisEvaluator support for testing the two-callsite
form of getModRefInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110270
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 4 Aug 2010 22:46:09 +0000 (22:46 +0000)]
and back in. false alarm on the tests from another unrelated local change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110269
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Wed, 4 Aug 2010 22:40:58 +0000 (22:40 +0000)]
PR7814: Truncates cannot be ignored for signed comparisons.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110268
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 4 Aug 2010 22:39:39 +0000 (22:39 +0000)]
Implement target specific getDebugValueLocation().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110267
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 4 Aug 2010 22:35:11 +0000 (22:35 +0000)]
Coalesce stack slot accesses that arise when spilling both sides of a COPY.
This helps avoid silly code:
%R0<def = LOAD <fi#5>
STORE <fi#5>, %R0<kill>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110266
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 4 Aug 2010 22:12:43 +0000 (22:12 +0000)]
oops. revert for a moment to clean up tests first.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110259
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 4 Aug 2010 22:10:15 +0000 (22:10 +0000)]
Reserve a stack slot if the function adjusts the stack but doesn't
simplify the call frame pseudo instructions. In that situation, the
calculations for estimating the stack size will be way off, leading to
not having an emergency spill slot when we need one. It should be possible
to be more precise about tracking the adjustment values, but not really
necessary for correctness. Upcoming cleanups for PEI in general will
render that moot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110258
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 4 Aug 2010 22:08:39 +0000 (22:08 +0000)]
Checkpoint SplitKit progress.
We are now at a point where we can split around simple single-entry, single-exit
loops, although still with some bugs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110257
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 4 Aug 2010 22:07:50 +0000 (22:07 +0000)]
Implement target specific getDebugValueLocation().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110256
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 4 Aug 2010 22:07:27 +0000 (22:07 +0000)]
Use location entry only of the location described by DBG_VALUE is valid.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110255
91177308-0d34-0410-b5e6-
96231b3b80d8
Stuart Hastings [Wed, 4 Aug 2010 22:05:38 +0000 (22:05 +0000)]
Test case for r110250. Radar
8264670. Test case by Fariborz Jahanian!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110254
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 4 Aug 2010 21:56:30 +0000 (21:56 +0000)]
Testcase for r110248.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110249
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 4 Aug 2010 21:44:13 +0000 (21:44 +0000)]
The EH prepare passes really want to be the last passes run before code-gen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110248
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Wed, 4 Aug 2010 20:47:44 +0000 (20:47 +0000)]
Use indirect calls in PowerPC JIT.
See PR5201. There is no way to know if direct calls will be within the allowed
range for BL. Hence emit all calls as indirect when in JIT mode.
Without this long-running applications will fail to JIT on PowerPC with a
relocation failure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110246
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 4 Aug 2010 20:32:36 +0000 (20:32 +0000)]
Fix typo in comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110244
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 19:52:50 +0000 (19:52 +0000)]
Fix a minor bug which resulted in intermediate calculations
using wider types than are necessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110241
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 18:51:09 +0000 (18:51 +0000)]
Change this llvm_unreachable to report_fatal_error, since it can
be triggered by valid, if dubious, IR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110240
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 4 Aug 2010 18:42:46 +0000 (18:42 +0000)]
Test case for combination of r110234 & r110235.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110238
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 4 Aug 2010 18:42:02 +0000 (18:42 +0000)]
While spilling live registers at the end of block check whether they are used by DBG_VALUE machine instructions or not. If a spilled register is used by DBG_VALUE machine instruction then insert a new DBG_VALUE machine instruction to encode variable's new location on stack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110235
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 4 Aug 2010 18:40:52 +0000 (18:40 +0000)]
If a variable is spilled by code generator then use DW_OP_fbreg to describe its location on stack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110234
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 4 Aug 2010 18:32:46 +0000 (18:32 +0000)]
Experiments show that we can safely increase our unrolling threshold without unduly impacting code size, particularly
since unrolling is not enabled at -Os.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110233
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 4 Aug 2010 18:27:08 +0000 (18:27 +0000)]
Add a note about the changing pass registration interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110231
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 4 Aug 2010 18:07:17 +0000 (18:07 +0000)]
Remove switch for disabling ARM tail calls. They
seem to be working correctly. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110226
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 4 Aug 2010 18:06:05 +0000 (18:06 +0000)]
Add DEBUG message.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110224
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 17:43:57 +0000 (17:43 +0000)]
Fix whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110223
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 17:01:59 +0000 (17:01 +0000)]
Update the polygen grammar for linker_private and linker_private_weak,
and add comments about major implemented features.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110215
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 16:48:36 +0000 (16:48 +0000)]
Fix a typo in a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110211
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 16:42:38 +0000 (16:42 +0000)]
Print a message when a test failure is due to stderr output
alone, rather than just an exit code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110208
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 16:25:01 +0000 (16:25 +0000)]
Remove CVS artifacts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110207
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 16:11:24 +0000 (16:11 +0000)]
Remove CVS artifacts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110206
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 16:10:42 +0000 (16:10 +0000)]
Delete scripts which haven't noticed that CVS has gone away.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110205
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 16:09:01 +0000 (16:09 +0000)]
cvsupdate is gone.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110204
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 16:07:22 +0000 (16:07 +0000)]
Delete mkpatch. Everything it does is already done by svn diff by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110203
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 15:59:16 +0000 (15:59 +0000)]
Remove a link which is no longer relevant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110202
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 15:58:01 +0000 (15:58 +0000)]
These tests are no longer stored in *CVS*.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110201
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 4 Aug 2010 15:32:40 +0000 (15:32 +0000)]
Enable COFF writer on mingw32 and cygwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110200
91177308-0d34-0410-b5e6-
96231b3b80d8
Stuart Hastings [Wed, 4 Aug 2010 15:31:35 +0000 (15:31 +0000)]
call-imm.ll test case regex fix. Patch by Dimitry Andric!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110199
91177308-0d34-0410-b5e6-
96231b3b80d8
Kalle Raiskila [Wed, 4 Aug 2010 13:59:48 +0000 (13:59 +0000)]
Make SPU backend handle insertelement and
store for "half vectors"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110198
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 4 Aug 2010 13:16:30 +0000 (13:16 +0000)]
Print an error message when someone tries -integrated-as on an unsupported target.
- The COFF backend doesn't support MingW/Cygwin at the moment, it'll report an
error, but it's still much better than random assertions from the MachO backend.
- We want to make ELF the default eventually, it's what the majority of targets use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110197
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Wed, 4 Aug 2010 12:43:22 +0000 (12:43 +0000)]
Note some LLVM 2.7 -> 2.8 APIs that changed / got renamed.
I encountered these while upgrading libclamav.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110196
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Wed, 4 Aug 2010 11:42:45 +0000 (11:42 +0000)]
Add a missing function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110195
91177308-0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Wed, 4 Aug 2010 10:00:52 +0000 (10:00 +0000)]
by Alexander Herz:
"The CWriter::GetValueName() method does not check if a value as an alias
and emits the alias name which will never be defined in the output .c
file (so the output file fails to compile). This can happen if you have
multiple inheritance with several destructors defined by clang (...D0Ev,
...D1Ev, ...D2Ev)."
-- applied with minor tweaks. Thanks!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110194
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Wed, 4 Aug 2010 09:30:20 +0000 (09:30 +0000)]
Fix build of DataFlow.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110193
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 01:39:08 +0000 (01:39 +0000)]
Eliminate unnecessary empty string literals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110183
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 01:16:35 +0000 (01:16 +0000)]
Fix a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110181
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 01:14:33 +0000 (01:14 +0000)]
Don't construct a std::string with a literal "".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110180
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 01:13:48 +0000 (01:13 +0000)]
Don't print the filename twice in file-not-found errors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110179
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 4 Aug 2010 01:09:40 +0000 (01:09 +0000)]
Fix a comment typo and add more 256-bit intrinsics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110177
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 00:12:31 +0000 (00:12 +0000)]
Change the logic which interprets output on stderr as an error so that
it doesn't modify the exit code or the stdout contents, and so that it
doesn't clutter the output with "Command has output on stderr!".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110171
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 4 Aug 2010 00:12:08 +0000 (00:12 +0000)]
Combine NEON VABD (absolute difference) intrinsics with ADDs to make VABA
(absolute difference with accumulate) intrinsics. Radar
8228576.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110170
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 00:05:16 +0000 (00:05 +0000)]
Don't print "Command output (stdout):" when the command has no output,
and same for stderr, to avoid clutter in the output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110169
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Aug 2010 00:00:13 +0000 (00:00 +0000)]
Use the regular conditional operator syntax instead of a clever hack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110168
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 3 Aug 2010 23:08:10 +0000 (23:08 +0000)]
Remove PointerAccessInfo, which nothing was using.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110167
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Aug 2010 22:53:22 +0000 (22:53 +0000)]
Make the makefiles go much faster by using the realpath
builtin instead of shell. On my 8 core mac pro, this speeds
up a 'make -j8' null build of the lib directory from 1.11s to
0.77s wall time.
Patch by NAKAMURA Takumi!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110166
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Aug 2010 22:49:22 +0000 (22:49 +0000)]
fix a win64 encoding problem, patch by Cameron Esfahani!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110164
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 3 Aug 2010 21:48:53 +0000 (21:48 +0000)]
Thread const correctness through a bunch of AliasAnalysis interfaces and
eliminate several const_casts.
Make CallSite implicitly convertible to ImmutableCallSite.
Rename the getModRefBehavior for intrinsic IDs to
getIntrinsicModRefBehavior to avoid overload ambiguity with CallSite,
which happens to be implicitly convertible to bool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110155
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Tue, 3 Aug 2010 21:31:55 +0000 (21:31 +0000)]
Add support for getting & setting the FPSCR application register on ARM when VFP is enabled.
Add support for using the FPSCR in conjunction with the vcvtr instruction, for controlling fp to int rounding.
Add support for the FLT_ROUNDS_ node now that the FPSCR is exposed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110152
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 3 Aug 2010 20:23:52 +0000 (20:23 +0000)]
The singular of "indices" is "index".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110135
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 3 Aug 2010 20:20:56 +0000 (20:20 +0000)]
Delete an unused function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110134
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 3 Aug 2010 18:20:32 +0000 (18:20 +0000)]
Make instcombine set explicit alignments on load or store
instructions with alignment 0, so that subsequent passes don't
need to bother checking the TargetData ABI size manually.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110128
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Tue, 3 Aug 2010 17:40:31 +0000 (17:40 +0000)]
CMake: Change somme target library names:
XCore->XCoreGen
PIC16->PIC16CodeGen
After updating your working copy, the first build will fail because it
is using the old library dependencies. Start the build again and it
will work fine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110127
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Tue, 3 Aug 2010 17:28:09 +0000 (17:28 +0000)]
CMake: add version control info to PACKAGE_VERSION, if available.
Adds "svn" or "git", depending on the VCS used. If svn, adds the
revision number as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110121
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 3 Aug 2010 17:27:43 +0000 (17:27 +0000)]
Make AliasAnalysis::getModRefInfo conservative in the face of volatility.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110120
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 3 Aug 2010 17:21:16 +0000 (17:21 +0000)]
Oops. Don't normalize spill weights twice.
When the normalizeSpillWeights function was introduced, I forgot to remove this
normalization.
This change could affect register allocation. Hopefully for the better.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110119
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 3 Aug 2010 17:21:14 +0000 (17:21 +0000)]
OK, that's it. This test is going away now. But don't worry, I am taking it to a
nice farm in the country where it can play with other tests. And bunnies.
It is not clear what is being tested, and the revision history shows a bunch of
random changes to the expected instruction count. Clearly, we are just fudging
it to pass whenever it fails.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110118
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Aug 2010 16:57:03 +0000 (16:57 +0000)]
avoid undefined behavior negating minint.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110117
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 3 Aug 2010 16:48:31 +0000 (16:48 +0000)]
Fix a typo Devang noticed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110115
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Aug 2010 16:41:24 +0000 (16:41 +0000)]
avoid undef behavior on minint, fixing PR7783.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110114
91177308-0d34-0410-b5e6-
96231b3b80d8
Peter Collingbourne [Tue, 3 Aug 2010 16:19:16 +0000 (16:19 +0000)]
Add an atomic lowering pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110113
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 3 Aug 2010 16:15:50 +0000 (16:15 +0000)]
Use unary + instead of a separate local variable for working
around std::min vs static const friction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110112
91177308-0d34-0410-b5e6-
96231b3b80d8