oota-llvm.git
14 years agoFileCheck: When a string using variable references fails to match, print
Daniel Dunbar [Sun, 22 Nov 2009 22:08:06 +0000 (22:08 +0000)]
FileCheck: When a string using variable references fails to match, print
additional information about the current definitions of the variables used in
the string.

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

14 years agoSourceMgr: Add ShowLine argument to PrintMessage, to allow suppressing the source...
Daniel Dunbar [Sun, 22 Nov 2009 22:08:00 +0000 (22:08 +0000)]
SourceMgr: Add ShowLine argument to PrintMessage, to allow suppressing the source line output.

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

14 years agoAllow '_' in FileCheck variable names, it is nice to have at least one
Daniel Dunbar [Sun, 22 Nov 2009 22:07:50 +0000 (22:07 +0000)]
Allow '_' in FileCheck variable names, it is nice to have at least one
separate character.
 - Chris, OK?

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

14 years agoAdd getFrameIndexReference() to TargetRegisterInfo, which allows targets to
Jim Grosbach [Sun, 22 Nov 2009 20:14:00 +0000 (20:14 +0000)]
Add getFrameIndexReference() to TargetRegisterInfo, which allows targets to
tell debug info which base register to use to reference a frame index on a
per-index basis. This is useful, for example, in the presence of dynamic
stack realignment when local variables are indexed via the stack pointer and
stack-based arguments via the frame pointer.

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

14 years agoMove default FrameReg val to getFrameIndexReference(). Otherwise, debug info can...
Jim Grosbach [Sun, 22 Nov 2009 20:05:32 +0000 (20:05 +0000)]
Move default FrameReg val to getFrameIndexReference(). Otherwise, debug info can get bogus values.

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

14 years ago80-column cleanup
Jim Grosbach [Sun, 22 Nov 2009 19:20:36 +0000 (19:20 +0000)]
80-column cleanup

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

14 years agoTeach MachineBasicBlock::updateTerminator() to handle a failing TII->ReverseBranchCon...
Jakob Stoklund Olesen [Sun, 22 Nov 2009 18:28:04 +0000 (18:28 +0000)]
Teach MachineBasicBlock::updateTerminator() to handle a failing TII->ReverseBranchCondition(Cond) call.

This fixes the MallocBench/cfrac test case regression.

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

14 years agoUpdate doc re: LLVM_BUILD_EXAMPLES.
Daniel Dunbar [Sun, 22 Nov 2009 18:27:51 +0000 (18:27 +0000)]
Update doc re: LLVM_BUILD_EXAMPLES.

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

14 years agoUse ExtractElementInst::Create instead of new; patch by Artur Pietrek!
Daniel Dunbar [Sun, 22 Nov 2009 18:27:43 +0000 (18:27 +0000)]
Use ExtractElementInst::Create instead of new; patch by Artur Pietrek!

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

14 years agoadd fixme for dubious code. Duncan, what do you think?
Chris Lattner [Sun, 22 Nov 2009 16:16:48 +0000 (16:16 +0000)]
add fixme for dubious code.  Duncan, what do you think?

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

14 years agoremove a silly condition that doesn't make a lot of sense anymore.
Chris Lattner [Sun, 22 Nov 2009 16:15:59 +0000 (16:15 +0000)]
remove a silly condition that doesn't make a lot of sense anymore.

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

14 years agoreduce indentation, no functionality change.
Chris Lattner [Sun, 22 Nov 2009 16:05:05 +0000 (16:05 +0000)]
reduce indentation, no functionality change.

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

14 years agoRemove the AliasAnalysis::getMustAliases method, which is dead.
Chris Lattner [Sun, 22 Nov 2009 16:01:44 +0000 (16:01 +0000)]
Remove the AliasAnalysis::getMustAliases method, which is dead.

The hasNoModRefInfoForCalls isn't worth it as a filter because
basicaa provides m/r info and everything chains to it, so remove
it.

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

14 years agoMiss two, PR5307.
Edward O'Callaghan [Sun, 22 Nov 2009 15:35:28 +0000 (15:35 +0000)]
Miss two, PR5307.

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

14 years agoConvert Thumb2 tests to FileCheck for PR5307.
Edward O'Callaghan [Sun, 22 Nov 2009 15:18:27 +0000 (15:18 +0000)]
Convert Thumb2 tests to FileCheck for PR5307.

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

14 years agoTurns out stuff gets allocated to different registers depending on the subtarget.
Benjamin Kramer [Sun, 22 Nov 2009 15:15:52 +0000 (15:15 +0000)]
Turns out stuff gets allocated to different registers depending on the subtarget.

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

14 years agoConvert ARM tests to FileCheck for PR5307.
Edward O'Callaghan [Sun, 22 Nov 2009 14:23:33 +0000 (14:23 +0000)]
Convert ARM tests to FileCheck for PR5307.

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

14 years agoConvert test to FileCheck.
Benjamin Kramer [Sun, 22 Nov 2009 13:16:36 +0000 (13:16 +0000)]
Convert test to FileCheck.

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

14 years agoForgot to alter RUN line when converting to FileCheck.
Edward O'Callaghan [Sun, 22 Nov 2009 13:09:48 +0000 (13:09 +0000)]
Forgot to alter RUN line when converting to FileCheck.

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

14 years agoFix for bad FileCheck converts in revision 89584.
Edward O'Callaghan [Sun, 22 Nov 2009 12:50:05 +0000 (12:50 +0000)]
Fix for bad FileCheck converts in revision 89584.

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

14 years agoConvert a few tests to FileCheck for PR5307.
Edward O'Callaghan [Sun, 22 Nov 2009 11:45:44 +0000 (11:45 +0000)]
Convert a few tests to FileCheck for PR5307.

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

14 years agoFix whitespace.
Bob Wilson [Sun, 22 Nov 2009 04:24:42 +0000 (04:24 +0000)]
Fix whitespace.

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

14 years agoFix pr5470. Tablegen handles template arguments by temporarily setting their
Bob Wilson [Sun, 22 Nov 2009 03:58:57 +0000 (03:58 +0000)]
Fix pr5470. Tablegen handles template arguments by temporarily setting their
values, resolving references to them, and then removing the definitions.
If a template argument is set to an undefined value, we need to resolve
references to that argument to an explicit undefined value.  The current code
leaves the reference to the template argument as it is, which causes an
assertion failure later when the definition of the template argument is
removed.

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

14 years agoRemove dead code. While there, also turn a few 'T* ' into 'T *' to match the
Nick Lewycky [Sun, 22 Nov 2009 02:38:11 +0000 (02:38 +0000)]
Remove dead code. While there, also turn a few 'T* ' into 'T *' to match the
rest of the file.

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

14 years agoGenerate more correct debug info for frame indices.
Jim Grosbach [Sun, 22 Nov 2009 02:32:29 +0000 (02:32 +0000)]
Generate more correct debug info for frame indices.

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

14 years agoMinor optimization: when doing eq/ne comparions and RHS is a constant - swap operands...
Anton Korobeynikov [Sun, 22 Nov 2009 01:14:08 +0000 (01:14 +0000)]
Minor optimization: when doing eq/ne comparions and RHS is a constant - swap operands, this will allow us to fold imm into comparison.

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

14 years agoDrop unsupported imm operands
Anton Korobeynikov [Sun, 22 Nov 2009 01:13:54 +0000 (01:13 +0000)]
Drop unsupported imm operands

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

14 years agoUse 2-byte alignment for functions. 4 bytes are clear overkill here.
Anton Korobeynikov [Sun, 22 Nov 2009 01:13:39 +0000 (01:13 +0000)]
Use 2-byte alignment for functions. 4 bytes are clear overkill here.

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

14 years agoUse semicolon as assembler comment string
Anton Korobeynikov [Sun, 22 Nov 2009 01:12:49 +0000 (01:12 +0000)]
Use semicolon as assembler comment string

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

14 years agoRevert 89562. We're being sneakier than I was giving us credit for, and this
Jim Grosbach [Sat, 21 Nov 2009 23:34:09 +0000 (23:34 +0000)]
Revert 89562. We're being sneakier than I was giving us credit for, and this
isn't necessary.

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

14 years agoremove trailing whitespace
Jim Grosbach [Sat, 21 Nov 2009 23:12:12 +0000 (23:12 +0000)]
remove trailing whitespace

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

14 years agoFix some spelling in comments.
Bob Wilson [Sat, 21 Nov 2009 22:44:20 +0000 (22:44 +0000)]
Fix some spelling in comments.

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

14 years agoAvoid a redundant assertion.
Bob Wilson [Sat, 21 Nov 2009 22:39:27 +0000 (22:39 +0000)]
Avoid a redundant assertion.

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

14 years agoDarwin requires a frame pointer for all non-leaf functions to support correct
Jim Grosbach [Sat, 21 Nov 2009 21:40:08 +0000 (21:40 +0000)]
Darwin requires a frame pointer for all non-leaf functions to support correct
backtraces.

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

14 years agoAdd predicate operand to NEON instructions. Fix lots (but not all) 80 col violations...
Evan Cheng [Sat, 21 Nov 2009 06:21:52 +0000 (06:21 +0000)]
Add predicate operand to NEON instructions. Fix lots (but not all) 80 col violations in ARMInstrNEON.td.

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

14 years agoAllow target to disable if-converting predicable instructions. e.g. NEON instructions...
Evan Cheng [Sat, 21 Nov 2009 06:20:26 +0000 (06:20 +0000)]
Allow target to disable if-converting predicable instructions. e.g. NEON instructions under ARM mode.

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

14 years agoCosmetic changes, which were long overdue, in DwarfDebug.cpp.
Devang Patel [Sat, 21 Nov 2009 02:48:08 +0000 (02:48 +0000)]
Cosmetic changes, which were long overdue, in DwarfDebug.cpp.

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

14 years agoWe are not using DBG_STOPPOINT anymore.
Devang Patel [Sat, 21 Nov 2009 02:46:55 +0000 (02:46 +0000)]
We are not using DBG_STOPPOINT anymore.

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

14 years agoMaintain stylistic consistency.
Evan Cheng [Sat, 21 Nov 2009 02:32:35 +0000 (02:32 +0000)]
Maintain stylistic consistency.

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

14 years agoDon't leave temporary files in the test directory.
Jakob Stoklund Olesen [Sat, 21 Nov 2009 02:05:31 +0000 (02:05 +0000)]
Don't leave temporary files in the test directory.

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

14 years agoBe more clever about calculating live variables through new basic blocks.
Jakob Stoklund Olesen [Sat, 21 Nov 2009 02:05:21 +0000 (02:05 +0000)]
Be more clever about calculating live variables through new basic blocks.

When splitting a critical edge, the registers live through the edge are:

- Used in a PHI instruction, or
- Live out from the predecessor, and
- Live in to the successor.

This allows the coalescer to eliminate even more phi joins.

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

14 years agoAllow SmallString to implicitly convert to StringRef.
Daniel Dunbar [Sat, 21 Nov 2009 02:01:24 +0000 (02:01 +0000)]
Allow SmallString to implicitly convert to StringRef.

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

14 years agoAdd more optimizations for object size checking, enable handling of
Eric Christopher [Sat, 21 Nov 2009 01:01:30 +0000 (01:01 +0000)]
Add more optimizations for object size checking, enable handling of
object size intrinsic and verify return type is correct. Collect various
code in one place.

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

14 years agoRemove dead code.
Devang Patel [Sat, 21 Nov 2009 00:54:03 +0000 (00:54 +0000)]
Remove dead code.

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

14 years agoWhen generating a vector the really slow way, via loads
Dale Johannesen [Sat, 21 Nov 2009 00:53:23 +0000 (00:53 +0000)]
When generating a vector the really slow way, via loads
and stores, handle the case where the element size is not
a valid target type correctly (PPC).

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

14 years agoThere is no need to use FoldingSet to unique DIEs.
Devang Patel [Sat, 21 Nov 2009 00:31:03 +0000 (00:31 +0000)]
There is no need to use FoldingSet to unique DIEs.
DIEs are created from MDNode, which are already uniqued. And DwarfDebug already uses ValueMaps to find and use existing DIE for a given MDNode.

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

14 years agoAdded two SubtargetFeatures::AddFeatures methods, which accept a comma-separated...
Viktor Kutuzov [Sat, 21 Nov 2009 00:00:02 +0000 (00:00 +0000)]
Added two SubtargetFeatures::AddFeatures methods, which accept a comma-separated string or already parsed command line parameters as input, and some code re-factoring to use these new methods.

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

14 years agoRestructure code to allow renaming of multiple-register groups for anti-dep breaking.
David Goodwin [Fri, 20 Nov 2009 23:33:54 +0000 (23:33 +0000)]
Restructure code to allow renaming of multiple-register groups for anti-dep breaking.

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

14 years agoEnable hoisting load from constant memories.
Evan Cheng [Fri, 20 Nov 2009 23:31:34 +0000 (23:31 +0000)]
Enable hoisting load from constant memories.

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

14 years agoFix a thinko that caused spurious @GOTOFFs.
Dan Gohman [Fri, 20 Nov 2009 23:30:32 +0000 (23:30 +0000)]
Fix a thinko that caused spurious @GOTOFFs.

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

14 years agoUpdate for new getBlockAddress signature.
Dan Gohman [Fri, 20 Nov 2009 23:21:00 +0000 (23:21 +0000)]
Update for new getBlockAddress signature.

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

14 years agoTarget-independent support for TargetFlags on BlockAddress operands,
Dan Gohman [Fri, 20 Nov 2009 23:18:13 +0000 (23:18 +0000)]
Target-independent support for TargetFlags on BlockAddress operands,
and support for blockaddresses in x86-32 PIC mode.

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

14 years agoRecommitting PALIGNR shift width fixes.
Sean Callanan [Fri, 20 Nov 2009 22:28:42 +0000 (22:28 +0000)]
Recommitting PALIGNR shift width fixes.
Thanks to Daniel Dunbar for fixing clang intrinsics:
  http://llvm.org/viewvc/llvm-project?view=rev&revision=89499

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

14 years agoRemove an incorrect overaggressive optimization
Dale Johannesen [Fri, 20 Nov 2009 22:16:40 +0000 (22:16 +0000)]
Remove an incorrect overaggressive optimization
(PPC specific).

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

14 years agoReverting PALIGNR fix until I figure out how this
Sean Callanan [Fri, 20 Nov 2009 22:09:28 +0000 (22:09 +0000)]
Reverting PALIGNR fix until I figure out how this
broke the Clang testsuite.

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

14 years agoFixed PALIGNR to take 8-bit rotations in all cases.
Sean Callanan [Fri, 20 Nov 2009 21:40:28 +0000 (21:40 +0000)]
Fixed PALIGNR to take 8-bit rotations in all cases.
Also fixed the corresponding testcase, and the PALIGNR
  intrinsic (tested for correctness with llvm-gcc).

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

14 years agoDo not hold on to a map slot while new entries may be inserted into the map.
Devang Patel [Fri, 20 Nov 2009 21:37:22 +0000 (21:37 +0000)]
Do not hold on to a map slot while new entries may be inserted into the map.
Use ValueMap, instead of std::map.

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

14 years agoCleanups.
David Greene [Fri, 20 Nov 2009 21:13:27 +0000 (21:13 +0000)]
Cleanups.

Make things a little more efficient as suggested by Evan.

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

14 years agoThere is no need to emit source location info for DW_TAG_pointer_type.
Devang Patel [Fri, 20 Nov 2009 21:05:37 +0000 (21:05 +0000)]
There is no need to emit source location info for DW_TAG_pointer_type.

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

14 years agoMake Loop::getLoopLatch() work on loops which don't have preheaders, as
Dan Gohman [Fri, 20 Nov 2009 20:51:18 +0000 (20:51 +0000)]
Make Loop::getLoopLatch() work on loops which don't have preheaders, as
it may be used in contexts where preheader insertion may have failed due
to an indirectbr.

Make LoopSimplify's LoopSimplify::SeparateNestedLoop properly fail in
the case that it would require splitting an indirectbr edge.

These fix PR5502.

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

14 years agoFix IPSCCP's code for deleting dead blocks to tolerate outstanding
Dan Gohman [Fri, 20 Nov 2009 20:19:14 +0000 (20:19 +0000)]
Fix IPSCCP's code for deleting dead blocks to tolerate outstanding
blockaddress users. This fixes PR5569.

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

14 years agoRevert "Add some rough optimizations for checking routines.", it buildeth not.
Daniel Dunbar [Fri, 20 Nov 2009 20:17:30 +0000 (20:17 +0000)]
Revert "Add some rough optimizations for checking routines.", it buildeth not.

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

14 years agoAdd some rough optimizations for checking routines.
Eric Christopher [Fri, 20 Nov 2009 19:57:37 +0000 (19:57 +0000)]
Add some rough optimizations for checking routines.

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

14 years agoRemat VLDRD from constpool. Clean up some instruction property specifications.
Evan Cheng [Fri, 20 Nov 2009 19:57:15 +0000 (19:57 +0000)]
Remat VLDRD from constpool. Clean up some instruction property specifications.

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

14 years agoAdd option -licm-const-load to hoist all loads from constant memory.
Evan Cheng [Fri, 20 Nov 2009 19:55:37 +0000 (19:55 +0000)]
Add option -licm-const-load to hoist all loads from constant memory.

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

14 years agoThe verify() call of CPEIsInRange() isn't right for the assertion check of
Jim Grosbach [Fri, 20 Nov 2009 19:37:38 +0000 (19:37 +0000)]
The verify() call of CPEIsInRange() isn't right for the assertion check of
constant pool ranges, as CPEIsInRange() makes conservative assumptions about
the potential alignment changes from branch adjustments. The verification,
on the other hand, runs after those branch adjustments are made, so the
effects on alignment are known and already taken into account. The sanity
check in verify should check the range directly instead.

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

14 years agoUse stripPointerCasts(). Thanks Duncan!
Dan Gohman [Fri, 20 Nov 2009 19:33:16 +0000 (19:33 +0000)]
Use stripPointerCasts(). Thanks Duncan!

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

14 years agoRemove some old experimental code that is no longer needed. Remove additional, specul...
David Goodwin [Fri, 20 Nov 2009 19:32:48 +0000 (19:32 +0000)]
Remove some old experimental code that is no longer needed. Remove additional, speculative scheduling pass as its cost did not translate into significant performance improvement. Minor tweaks.

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

14 years agoMore consistent labelling of basic blocks in debug output
Jakob Stoklund Olesen [Fri, 20 Nov 2009 18:54:59 +0000 (18:54 +0000)]
More consistent labelling of basic blocks in debug output

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

14 years agoRevert the rule that considers comparisons between two pointers in the
Dan Gohman [Fri, 20 Nov 2009 17:50:21 +0000 (17:50 +0000)]
Revert the rule that considers comparisons between two pointers in the
same object to be a non-capture; Duncan pointed out a way that such
a comparison could be a capture.

Make the rule that considers a comparison against null more specific,
and only consider noalias return values compared against null. This
still supports test/Transforms/GVN/nonescaping-malloc.ll, and is not
susceptible to the problem Duncan pointed out with noalias arguments.

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

14 years agoMove the handling of CommaSeparated options into ProvideOption.
Mikhail Glushenkov [Fri, 20 Nov 2009 17:23:17 +0000 (17:23 +0000)]
Move the handling of CommaSeparated options into ProvideOption.

Makes '--comma-separated val1,val2' mean the same thing as
'--comma-separated=val1,val2' (that is, 'val1' and 'val2' are not lumped
together as 'val1,val2'). Also declutters the main loop a bit.

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

14 years agoFix PR5563, an expensive checks failure when running on
Duncan Sands [Fri, 20 Nov 2009 13:19:51 +0000 (13:19 +0000)]
Fix PR5563, an expensive checks failure when running on
tests/Transforms/InstCombine/shufflemask-undef.ll.  If
anyone cares, the use of 2*e here (and the equivalent
all over the place in instcombine) seems wrong, though
harmless: it should really be twice the length of the
input vector.  I think shufflevector used to require
that the mask have the same length as the input, but I
don't think that's true any more.  I don't care enough
about vectors to do anything about this...

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

14 years agoFix PR5558, which was caused by a wrong fix for PR3393 (see commit 63048),
Duncan Sands [Fri, 20 Nov 2009 10:45:10 +0000 (10:45 +0000)]
Fix PR5558, which was caused by a wrong fix for PR3393 (see commit 63048),
which was an expensive checks failure due to a bug in the checking.  This
patch in essence reverts the original fix for PR3393, and refixes it by a
tweak to the way expensive checking is done.

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

14 years agoTry to work around grep's "Binary file (standard input) matches" complaints seen
Benjamin Kramer [Fri, 20 Nov 2009 09:53:25 +0000 (09:53 +0000)]
Try to work around grep's "Binary file (standard input) matches" complaints seen
on ppc buildbot.

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

14 years agoFix -march= name for x86-64.
Daniel Dunbar [Fri, 20 Nov 2009 02:52:08 +0000 (02:52 +0000)]
Fix -march= name for x86-64.

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

14 years agoFix fast-isel to avoid selecting the return instruction if a
Dan Gohman [Fri, 20 Nov 2009 02:51:26 +0000 (02:51 +0000)]
Fix fast-isel to avoid selecting the return instruction if a
tail call has been encountered.

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

14 years agoRemove verifySizes() since it's not adding much value.
Jim Grosbach [Fri, 20 Nov 2009 02:32:06 +0000 (02:32 +0000)]
Remove verifySizes() since it's not adding much value.

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

14 years agoAlso CSE non-pic load from constant pools.
Evan Cheng [Fri, 20 Nov 2009 02:10:27 +0000 (02:10 +0000)]
Also CSE non-pic load from constant pools.

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

14 years agoAdd an experimental option to run gep-splitting and no-load GVN
Dan Gohman [Fri, 20 Nov 2009 02:03:44 +0000 (02:03 +0000)]
Add an experimental option to run gep-splitting and no-load GVN
just before codegen.

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

14 years agoSimplify this code; it's not necessary to check isIdentifiedObject here
Dan Gohman [Fri, 20 Nov 2009 01:34:03 +0000 (01:34 +0000)]
Simplify this code; it's not necessary to check isIdentifiedObject here
because if the results from getUnderlyingObject match, the values must
be from the same underlying object, even if we don't know what that
object is.

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

14 years agoAdd MachineBasicBlock::getName, and use it in place of getBasicBlock()->getName.
Jakob Stoklund Olesen [Fri, 20 Nov 2009 01:17:03 +0000 (01:17 +0000)]
Add MachineBasicBlock::getName, and use it in place of getBasicBlock()->getName.

Fix debug code that assumes getBasicBlock never returns NULL.

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

14 years agoTeach getSmallConstantTripMultiple about Shl operators.
Dan Gohman [Fri, 20 Nov 2009 01:09:34 +0000 (01:09 +0000)]
Teach getSmallConstantTripMultiple about Shl operators.

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

14 years agoFix codegen of conditional move of immediates. We were not making use of the immediat...
Evan Cheng [Fri, 20 Nov 2009 00:54:03 +0000 (00:54 +0000)]
Fix codegen of conditional move of immediates. We were not making use of the immediate forms of cmov instructions at all.

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

14 years agoRemoved references to LiveStacks from Spiller.* . They're no longer needed.
Lang Hames [Fri, 20 Nov 2009 00:53:30 +0000 (00:53 +0000)]
Removed references to LiveStacks from Spiller.* . They're no longer needed.

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

14 years agoRefine the capture tracking rules for comparisons to be more
Dan Gohman [Fri, 20 Nov 2009 00:50:47 +0000 (00:50 +0000)]
Refine the capture tracking rules for comparisons to be more
careful about crazy methods of capturing pointers using comparisons.
Comparisons of identified objects with null in the default address
space are not captures. And, comparisons of two pointers within the
same identified object are not captures.

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

14 years agoUse isVoidTy().
Dan Gohman [Fri, 20 Nov 2009 00:43:11 +0000 (00:43 +0000)]
Use isVoidTy().

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

14 years agoSpecify proper arch and triple for 64-bit.
Bill Wendling [Fri, 20 Nov 2009 00:40:21 +0000 (00:40 +0000)]
Specify proper arch and triple for 64-bit.

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

14 years agoTestcase for r89415.
Bill Wendling [Fri, 20 Nov 2009 00:32:16 +0000 (00:32 +0000)]
Testcase for r89415.

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

14 years agoUpdate comment to reflect instruction.
Eric Christopher [Fri, 20 Nov 2009 00:21:55 +0000 (00:21 +0000)]
Update comment to reflect instruction.

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

14 years agoRefine this to only apply to null in the default address space.
Dan Gohman [Thu, 19 Nov 2009 23:53:49 +0000 (23:53 +0000)]
Refine this to only apply to null in the default address space.

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

14 years agoTry to fix JITTest.FarCallToKnownFunction on ARM and PPC.
Jeffrey Yasskin [Thu, 19 Nov 2009 23:42:58 +0000 (23:42 +0000)]
Try to fix JITTest.FarCallToKnownFunction on ARM and PPC.

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

14 years agoUse CMAKE_DL_LIBS instead of raw library name. Fixes bug 5536.
Oscar Fuentes [Thu, 19 Nov 2009 23:21:43 +0000 (23:21 +0000)]
Use CMAKE_DL_LIBS instead of raw library name. Fixes bug 5536.

Patch by Tobias Grosser!

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

14 years agoFix a couple of problems with maintaining liveness information for antidep breaking.
David Goodwin [Thu, 19 Nov 2009 23:12:37 +0000 (23:12 +0000)]
Fix a couple of problems with maintaining liveness information for antidep breaking.

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

14 years agoWhen placing constant islands and adjusting for alignment padding, inline
Jim Grosbach [Thu, 19 Nov 2009 23:10:28 +0000 (23:10 +0000)]
When placing constant islands and adjusting for alignment padding, inline
assembly can confuse things utterly, as it's assumed that instructions in
inline assembly are 4 bytes wide. For Thumb mode, that's often not true,
so the calculations for when alignment padding will be present get thrown off,
ultimately leading to out of range constant pool entry references. Making
more conservative assumptions that padding may be necessary when inline asm
is present avoids this situation.

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

14 years agoExtend CaptureTracking to indicate when a value is never stored, even
Dan Gohman [Thu, 19 Nov 2009 21:57:48 +0000 (21:57 +0000)]
Extend CaptureTracking to indicate when a value is never stored, even
if it is not ultimately captured. Teach BasicAliasAnalysis that a
local object address which does not escape and is never stored does
not alias with a value resulting from a load.

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

14 years agoRefactor cmov selection code out to a separate function. No functionality change.
Evan Cheng [Thu, 19 Nov 2009 21:45:22 +0000 (21:45 +0000)]
Refactor cmov selection code out to a separate function. No functionality change.

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

14 years agoComparing a pointer with null is not a capture.
Dan Gohman [Thu, 19 Nov 2009 21:34:07 +0000 (21:34 +0000)]
Comparing a pointer with null is not a capture.

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

14 years agoOnly run this mutex test if threading is enabled. This
Duncan Sands [Thu, 19 Nov 2009 20:48:14 +0000 (20:48 +0000)]
Only run this mutex test if threading is enabled.  This
fixes PR5395.

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

14 years agoPlace new basic blocks immediately after their predecessor when splitting
Jakob Stoklund Olesen [Thu, 19 Nov 2009 19:42:16 +0000 (19:42 +0000)]
Place new basic blocks immediately after their predecessor when splitting
critical edges in PHIElimination.

This has a huge impact on regalloc performance, and we recover almost all of
the 10% compile time regression that edge splitting introduced.

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

14 years agoReverting the EH table patches.
Bill Wendling [Thu, 19 Nov 2009 19:21:09 +0000 (19:21 +0000)]
Reverting the EH table patches.

$ svn merge -c -89279 https://llvm.org/svn/llvm-project/llvm/trunk
--- Reverse-merging r89279 into '.':
U    lib/CodeGen/AsmPrinter/DwarfException.cpp
U    lib/Target/TargetLoweringObjectFile.cpp
$ svn merge -c -89270 https://llvm.org/svn/llvm-project/llvm/trunk
--- Reverse-merging r89270 into '.':
G    lib/CodeGen/AsmPrinter/DwarfException.cpp
G    lib/Target/TargetLoweringObjectFile.cpp

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