Dan Gohman [Mon, 23 Nov 2009 17:46:23 +0000 (17:46 +0000)]
Move RegsForValue to an anonymous namespace, since it is only used
in this file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89675
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 17:42:46 +0000 (17:42 +0000)]
Move some more code out of SelectionDAGBuild.cpp and into
FunctionLoweringInfo.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89674
91177308-0d34-0410-b5e6-
96231b3b80d8
David Goodwin [Mon, 23 Nov 2009 17:34:12 +0000 (17:34 +0000)]
Minor itinerary fixes for FP instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89672
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 23 Nov 2009 17:26:04 +0000 (17:26 +0000)]
Update CMake file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89671
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 17:16:22 +0000 (17:16 +0000)]
Move the FunctionLoweringInfo class and some related utility functions out
of SelectionDAGBuild.h/cpp into its own files, to help separate
general lowering logic from SelectionDAG-specific lowering logic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89667
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Nov 2009 17:07:35 +0000 (17:07 +0000)]
fix comment, thanks all :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89666
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Nov 2009 16:46:41 +0000 (16:46 +0000)]
use the new isNoAlias method to simplify some code, only do an escaping check if
we have a non-constant pointer. Constant pointers can't be local.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89665
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Nov 2009 16:45:27 +0000 (16:45 +0000)]
whitespace cleanup, tidying
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89664
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Nov 2009 16:44:43 +0000 (16:44 +0000)]
speed up BasicAA a bit by implementing a long-standing TODO.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89663
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Nov 2009 16:38:54 +0000 (16:38 +0000)]
add a helper
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89662
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 16:24:18 +0000 (16:24 +0000)]
Move FunctionPassManagerImpl's dumpArguments and dumpPasses calls
out of its run function and into its doInitialization method, so
that it does the dump once instead of once per function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89660
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 16:22:21 +0000 (16:22 +0000)]
Make ConstantFoldConstantExpression recursively visit the entire
ConstantExpr, not just the top-level operator. This allows it to
fold many more constants.
Also, make GlobalOpt call ConstantFoldConstantExpression on
GlobalVariable initializers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89659
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 23 Nov 2009 16:13:39 +0000 (16:13 +0000)]
Fix a use of an invalidated iterator in the case where there are multiple
adjacent uses of a dead basic block from the same user. This fixes PR5596.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89658
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 23 Nov 2009 10:49:03 +0000 (10:49 +0000)]
I forgot to update the prototype for LLVMBuildIntCast when correcting
the body to not pass the name for the isSigned parameter. However it
seems that changing prototypes is a big-no-no, so here I revert the
previous change and pass "true" for isSigned, meaning this always does
a signed cast, which was the previous behaviour assuming the name was
not NULL! Some other C function needs to be introduced for the general
case of signed or unsigned casts. This hopefully unbreaks the ocaml
binding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89648
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 23 Nov 2009 04:52:00 +0000 (04:52 +0000)]
Start catching LLVMContext misuse in the verifier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89646
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 23 Nov 2009 03:50:44 +0000 (03:50 +0000)]
Pull LLVMContext out of PromoteMemToReg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89645
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 23 Nov 2009 03:34:29 +0000 (03:34 +0000)]
Remove LLVMContext and its include.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89644
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 23 Nov 2009 03:29:18 +0000 (03:29 +0000)]
Remove unused LLVMContext.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89642
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 23 Nov 2009 03:26:09 +0000 (03:26 +0000)]
Remove dead LLVMContext argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89641
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 23 Nov 2009 03:17:33 +0000 (03:17 +0000)]
Reapply r88830 with a bugfix: this transform only applies to icmp eq/ne. This
fixes part of PR5438.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89639
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Mon, 23 Nov 2009 00:40:39 +0000 (00:40 +0000)]
CMake: Updated library dependencies.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89637
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Mon, 23 Nov 2009 00:32:42 +0000 (00:32 +0000)]
CMake: Do not try to install a target before it is defined.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89636
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Mon, 23 Nov 2009 00:21:43 +0000 (00:21 +0000)]
CMake: generate targets for tools and examples even when
LLVM_BUILD_TOOLS or LLVM_BUILD_EXAMPLES are OFF.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89635
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 22 Nov 2009 22:59:26 +0000 (22:59 +0000)]
FileCheck, PR5239: Try to find the intended match on failures, but looking for a
good nearby fuzzy match. Frequently the input is nearly correct, and just
showing the user the a nearby sensible match is enough to diagnose the problem.
- The "fuzzyness" is pretty simple and arbitrary, but worked on my three test
cases. If you encounter problems, or places you think FileCheck should have
guessed but didn't, please add test cases to PR5239.
For example, previously FileCheck would report this:
--
t.cpp:21:55: error: expected string not found in input
// CHECK: define void @_Z2f25f2_s1([[i64_i64_ty]] %a0)
^
<stdin>:19:30: note: scanning from here
define void @_Z2f15f1_s1(%1) nounwind {
^
<stdin>:19:30: note: with variable "i64_i64_ty" equal to "%0"
--
and now it also reports this:
--
<stdin>:27:1: note: possible intended match here
define void @_Z2f25f2_s1(%0) nounwind {
^
--
which makes it clear that the CHECK just has an extra ' %a0' in it, without
having to check the input.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89631
91177308-0d34-0410-b5e6-
96231b3b80d8
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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