OSDN Git Service
Jakob Stoklund Olesen [Fri, 10 Feb 2012 18:52:15 +0000 (18:52 +0000)]
Remove unused variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150258
91177308-0d34-0410-b5e6-
96231b3b80d8
Pete Cooper [Fri, 10 Feb 2012 18:13:54 +0000 (18:13 +0000)]
Added description of invariant.load metadata to LangRef. It was added to the compiler in r144100
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150257
91177308-0d34-0410-b5e6-
96231b3b80d8
Jason W Kim [Fri, 10 Feb 2012 16:07:59 +0000 (16:07 +0000)]
Make valgrind happy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150251
91177308-0d34-0410-b5e6-
96231b3b80d8
Hal Finkel [Fri, 10 Feb 2012 15:52:40 +0000 (15:52 +0000)]
Update BBVectorize to use aliasesUnknownInst.
This allows BBVectorize to check the "unknown instruction" list in the
alias sets. This is important to prevent instruction fusing from reordering
function calls. Resolves PR11920.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150250
91177308-0d34-0410-b5e6-
96231b3b80d8
Hal Finkel [Fri, 10 Feb 2012 15:52:39 +0000 (15:52 +0000)]
Have AliasSet::aliasesUnknownInst use pointer TBAA info when available
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150249
91177308-0d34-0410-b5e6-
96231b3b80d8
Hal Finkel [Fri, 10 Feb 2012 15:52:37 +0000 (15:52 +0000)]
Make aliasesPointer and aliasesUnknownInst public members of AliasSet.
These query functions are safe for external use and, furthermore,
are the only way to make queries against the "unknown instructions" array.
BBVectorize will use these functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150248
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Fri, 10 Feb 2012 14:31:24 +0000 (14:31 +0000)]
Fix PR11948: the result type of an icmp may be a vector of boolean -
don't assume it is a boolean.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150247
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Fri, 10 Feb 2012 14:26:42 +0000 (14:26 +0000)]
Revert commit 149912 (lattner) and add a testcase that shows the problem (which
is that patterns no longer match for vectors of booleans, because you only get
ConstantDataVector when the vector element type is i8, i16, etc, not when it is
i1). Original commit message:
Remove some dead code and tidy things up now that vectors use ConstantDataVector
instead of always using ConstantVector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150246
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 10 Feb 2012 13:18:44 +0000 (13:18 +0000)]
Put instruction names into an indexed string table on the side, removing a pointer from MCInstrDesc.
Make them accessible through MCInstrInfo. They are only used for debugging purposes so this doesn't
have an impact on performance. X86MCTargetDesc.o goes from 630K to 461K on x86_64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150245
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Fri, 10 Feb 2012 07:08:25 +0000 (07:08 +0000)]
comment grammar
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150233
91177308-0d34-0410-b5e6-
96231b3b80d8
Jia Liu [Fri, 10 Feb 2012 04:58:24 +0000 (04:58 +0000)]
update --enable-targets list
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150229
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Fri, 10 Feb 2012 04:10:44 +0000 (04:10 +0000)]
unnecessary include
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150228
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Fri, 10 Feb 2012 04:10:40 +0000 (04:10 +0000)]
PTX no longer needs to provide its own backend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150227
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Fri, 10 Feb 2012 04:10:36 +0000 (04:10 +0000)]
RegAlloc superpass: includes phi elimination, coalescing, and scheduling.
Creates a configurable regalloc pipeline.
Ensure specific llc options do what they say and nothing more: -reglloc=... has no effect other than selecting the allocator pass itself. This patch introduces a new umbrella flag, "-optimize-regalloc", to enable/disable the optimizing regalloc "superpass". This allows for example testing coalscing and scheduling under -O0 or vice-versa.
When a CodeGen pass requires the MachineFunction to have a particular property, we need to explicitly define that property so it can be directly queried rather than naming a specific Pass. For example, to check for SSA, use MRI->isSSA, not addRequired<PHIElimination>.
CodeGen transformation passes are never "required" as an analysis
ProcessImplicitDefs does not require LiveVariables.
We have a plan to massively simplify some of the early passes within the regalloc superpass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150226
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Fri, 10 Feb 2012 04:10:26 +0000 (04:10 +0000)]
whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150225
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Fri, 10 Feb 2012 03:19:36 +0000 (03:19 +0000)]
Remove unused 'isAlias' parameter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150224
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 10 Feb 2012 02:21:49 +0000 (02:21 +0000)]
ARM on darwin, v6 implies the presence of VFP for the assembler.
rdar://
10838899
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150222
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Fri, 10 Feb 2012 01:31:31 +0000 (01:31 +0000)]
Constrain the regmask search space for local live ranges.
When checking a local live range for interference, restrict the binary
search to the single block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150220
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Fri, 10 Feb 2012 01:26:29 +0000 (01:26 +0000)]
Cache basic block boundaries for faster RegMaskSlots access.
Provide API to get a list of register mask slots and bits in a basic
block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150219
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Fri, 10 Feb 2012 01:23:55 +0000 (01:23 +0000)]
Optimize LiveIntervals::intervalIsInOneMBB().
No looping and binary searches necessary.
Return a pointer to the containing block instead of just a bool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150218
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 10 Feb 2012 00:28:31 +0000 (00:28 +0000)]
Cache iterators. Some of these are expensive to create.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150214
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Thu, 9 Feb 2012 19:24:12 +0000 (19:24 +0000)]
Change default error_code ctor to a 'named ctor' so it's more self-documenting.
Unify default construction of error_code uses on this idiom so that users don't
feel compelled to make static globals for naming convenience. (unfortunately I
couldn't make the original ctor private as some APIs don't return their result,
instead using an out parameter (that makes sense to default construct) - which
is a bit of a pity. I did, however, find/fix some cases of unnecessary default
construction of error_code before I hit the unfixable cases)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150197
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 9 Feb 2012 18:25:05 +0000 (18:25 +0000)]
Add register mask support to RAGreedy.
This only adds the interference checks required for correctness.
We still need to take advantage of register masks for the
interference driven live range splitting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150191
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 9 Feb 2012 17:34:01 +0000 (17:34 +0000)]
Now subprogram descriptors are not collected by llvm.dbg.sp NamedMDNode. Update document to reflect this change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150187
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 9 Feb 2012 16:28:15 +0000 (16:28 +0000)]
Tweak comment readability and grammar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150183
91177308-0d34-0410-b5e6-
96231b3b80d8
Sirish Pande [Thu, 9 Feb 2012 15:20:33 +0000 (15:20 +0000)]
Test for commit access.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150178
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 9 Feb 2012 14:26:06 +0000 (14:26 +0000)]
GlobalOpt: Be more aggressive about elminating side-effect free static dtors.
GlobalOpt runs early in the pipeline (before inlining) and complex class
hierarchies often introduce bitcasts or GEPs which weren't optimized away.
Teach it to ignore side-effect free instructions instead of depending on
other passes to remove them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150174
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 9 Feb 2012 12:35:37 +0000 (12:35 +0000)]
Store just the SimpleValueType in the generated VT tables for each register class, eliminating static ctors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150173
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 9 Feb 2012 11:25:09 +0000 (11:25 +0000)]
Move the Name field in MCInstrDesc to the end, saving 8 bytes of padding per entry on x86_64.
No change on i386.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150170
91177308-0d34-0410-b5e6-
96231b3b80d8
James Molloy [Thu, 9 Feb 2012 10:56:31 +0000 (10:56 +0000)]
Teach the MC and disassembler about SoftFail, and hook it up to UNPREDICTABLE on ARM. Wire this to tBLX in order to provide test coverage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150169
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Thu, 9 Feb 2012 08:58:07 +0000 (08:58 +0000)]
More tweaks to get the size of the X86 disassembler tables down.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150167
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Thu, 9 Feb 2012 07:45:30 +0000 (07:45 +0000)]
Flatten some of the arrays in the X86 disassembler tables to reduce space needed to store pointers on 64-bit hosts and reduce relocations needed at startup. Part of PR11953.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150161
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Thu, 9 Feb 2012 05:59:36 +0000 (05:59 +0000)]
Preserve physreg kills in MachineBasicBlock::SplitCriticalEdge.
Failure to preserve kills was causing LiveIntervals to miss some EFLAGS live
ranges. Unfortunately I've been unable to reduce a good test case yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150152
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Thu, 9 Feb 2012 05:12:58 +0000 (05:12 +0000)]
test/CodeGen/X86/atom-lea-sp.ll: Add explicit -mtriple=i686-linux.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150151
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Thu, 9 Feb 2012 04:45:38 +0000 (04:45 +0000)]
Fix kill flags when moving instructions using LiveIntervals::moveInstr(...).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150150
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Thu, 9 Feb 2012 04:39:48 +0000 (04:39 +0000)]
Remove assertion. Not all use operands are reads.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150149
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Thu, 9 Feb 2012 00:40:55 +0000 (00:40 +0000)]
Improve TargetPassConfig. No intended functionality.
Split CodeGen into stages.
Distinguish between optimization and correctness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150122
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Thu, 9 Feb 2012 00:40:52 +0000 (00:40 +0000)]
comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150121
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Thu, 9 Feb 2012 00:29:19 +0000 (00:29 +0000)]
Remove static initializer from DataStream.cpp
If someone would prefer a clear name for the 'success' error_value we could
come up with one - potentially just a 'named constructor' style
'error_value::success()' to make this expression more self-documenting. If
I see this come up in other cases I'll certainly consider it.
One step along the way to resolving PR11944.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150120
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 9 Feb 2012 00:19:08 +0000 (00:19 +0000)]
Erase dead copies that are clobbered by a call.
This does make a difference, at least when using RABasic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150118
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 9 Feb 2012 00:17:22 +0000 (00:17 +0000)]
Handle register masks when searching for EFLAGS clobbers.
Calls clobber the flags, but when using register masks there is no
EFLAGS<imp-def> operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150117
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 9 Feb 2012 00:15:39 +0000 (00:15 +0000)]
Never delete instructions that define reserved registers.
I think this was already the intention, but DeadMachineInstructionElim
was accidentally tracking the liveness of reserved registers. Now,
instructions with reserved defs are never deleted.
This prevents the call stack adjustment instructions from getting
deleted when enabling register masks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150116
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 8 Feb 2012 22:37:35 +0000 (22:37 +0000)]
Handle register masks in MachineCopyPropagation.
For simplicity, treat calls with register masks as basic block
boundaries. This means we can't copy propagate callee-saved registers
across calls, but I don't think that is a big deal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150108
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 8 Feb 2012 22:33:17 +0000 (22:33 +0000)]
Commit Andy Zhang's test for the lea patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150107
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 8 Feb 2012 22:20:00 +0000 (22:20 +0000)]
fix broken link
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150105
91177308-0d34-0410-b5e6-
96231b3b80d8
Kostya Serebryany [Wed, 8 Feb 2012 21:36:17 +0000 (21:36 +0000)]
[asan] unpoison the stack before every noreturn call. Fixes asan issue 37. llvm part
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150102
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 8 Feb 2012 21:23:13 +0000 (21:23 +0000)]
Codegen pass definition cleanup. No functionality.
Moving toward a uniform style of pass definition to allow easier target configuration.
Globally declare Pass ID.
Globally declare pass initializer.
Use INITIALIZE_PASS consistently.
Add a call to the initializer from CodeGen.cpp.
Remove redundant "createPass" functions and "getPassName" methods.
While cleaning up declarations, cleaned up comments (sorry for large diff).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150100
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 8 Feb 2012 21:23:03 +0000 (21:23 +0000)]
Move pass configuration out of pass constructors: MachineLICM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150099
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 8 Feb 2012 21:23:00 +0000 (21:23 +0000)]
whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150098
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 8 Feb 2012 21:22:57 +0000 (21:22 +0000)]
Move pass configuration out of pass constructors: StackSlotColoring.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150097
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 8 Feb 2012 21:22:53 +0000 (21:22 +0000)]
Move pass configuration out of pass constructors: PostRAScheduler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150096
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 8 Feb 2012 21:22:48 +0000 (21:22 +0000)]
Move pass configuration out of pass constructors: BranchFolderPass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150095
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 8 Feb 2012 21:22:43 +0000 (21:22 +0000)]
whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150094
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 8 Feb 2012 21:22:39 +0000 (21:22 +0000)]
Added TargetPassConfig::setOpt
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150093
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 8 Feb 2012 21:22:34 +0000 (21:22 +0000)]
Added Pass::createPass(ID) to handle pass configuration by ID
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150092
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 8 Feb 2012 21:22:30 +0000 (21:22 +0000)]
Move pass configuration out of pass constructors: TailDuplicate::PreRegAlloc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150091
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 8 Feb 2012 18:54:35 +0000 (18:54 +0000)]
Add Register mask support to RABasic.
When a virtual register is live across a call, limit the search space to
call-preserved registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150081
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 8 Feb 2012 18:46:26 +0000 (18:46 +0000)]
Don't map registers to the invalid dwarf register (-1). It's the default value.
X86GenRegisterInfo.inc | 1032 -------------------------------------------------
1 file changed, 1032 deletions(-)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150080
91177308-0d34-0410-b5e6-
96231b3b80d8
Brendon Cahoon [Wed, 8 Feb 2012 18:25:47 +0000 (18:25 +0000)]
Use TSFlag bit to describe instruction properties.
Creating the isPredicated TSFlag enables the code
to use the property defined in the instruction format
instead of using a large switch statement.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150078
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 8 Feb 2012 17:33:45 +0000 (17:33 +0000)]
Keep track of register masks in LiveIntervalAnalysis.
Build an ordered vector of register mask operands (i.e., calls) when
computing live intervals. Provide a checkRegMaskInterference() function
that computes a bit mask of usable registers for a live range.
This is a quick way of determining of a live range crosses any calls,
and restricting it to the callee saved registers if it does.
Previously, we had to discover call clobbers for each candidate register
independently.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150077
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 8 Feb 2012 14:43:53 +0000 (14:43 +0000)]
Value initialize MCRegisterClasses. Not sure how could miss this during the MCTargetDesc refactor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150076
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 8 Feb 2012 14:10:53 +0000 (14:10 +0000)]
Use Use::set rather than finding the operand number of the use
and setting that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150074
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 8 Feb 2012 13:13:47 +0000 (13:13 +0000)]
PathV2: Remove static StringRef ctors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150071
91177308-0d34-0410-b5e6-
96231b3b80d8
Elena Demikhovsky [Wed, 8 Feb 2012 08:37:26 +0000 (08:37 +0000)]
Fixed a bug in printing "cmp" pseudo ops.
> This IR code
> %res = call <8 x float> @llvm.x86.avx.cmp.ps.256(<8 x float> %a0, <8 x float> %a1, i8 14)
> fails with assertion:
>
> llc: X86ATTInstPrinter.cpp:62: void llvm::X86ATTInstPrinter::printSSECC(const llvm::MCInst*, unsigned int, llvm::raw_ostream&): Assertion `0 && "Invalid ssecc argument!"' failed.
> 0 llc 0x0000000001355803
> 1 llc 0x0000000001355dc9
> 2 libpthread.so.0 0x00007f79a30575d0
> 3 libc.so.6 0x00007f79a23a1945 gsignal + 53
> 4 libc.so.6 0x00007f79a23a2f21 abort + 385
> 5 libc.so.6 0x00007f79a239a810 __assert_fail + 240
> 6 llc 0x00000000011858d5 llvm::X86ATTInstPrinter::printSSECC(llvm::MCInst const*, unsigned int, llvm::raw_ostream&) + 119
I added the full testing for all possible pseudo-ops of cmp.
I extended X86AsmPrinter.cpp and X86IntelInstPrinter.cpp.
You'l also see lines alignments (unrelated to this fix) in X86IselLowering.cpp from my previous check-in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150068
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 8 Feb 2012 08:29:30 +0000 (08:29 +0000)]
Remove a couple unneeded intrinsic patterns
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150067
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 8 Feb 2012 07:58:38 +0000 (07:58 +0000)]
No actual functional change here, just some clarifications:
Clarify that contributors are agreeing to license their code under the
license corresponding to the subproject that they are contributing to,
as requested by a potential contributor.
Also, as a drive-by, update the llvm-gcc/GPL section to mention dragonegg
and say that GPL code is all in its own repo's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150065
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 8 Feb 2012 06:36:57 +0000 (06:36 +0000)]
Remove GCC builtins for vpermilp* intrinsics as clang no longer needs them. Custom lower the intrinsics to the vpermilp target specific node and remove intrinsic patterns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150060
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Wed, 8 Feb 2012 02:45:44 +0000 (02:45 +0000)]
[fast-isel] Add support for SUBs with non-legal types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150047
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Wed, 8 Feb 2012 02:30:12 +0000 (02:30 +0000)]
Add comment to test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150046
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Wed, 8 Feb 2012 02:29:21 +0000 (02:29 +0000)]
[fast-isel] Add support for ORs with non-legal types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150045
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 8 Feb 2012 02:17:25 +0000 (02:17 +0000)]
Added MachineInstr::isBundled() to check if an instruction is part of a bundle.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150044
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 8 Feb 2012 02:17:21 +0000 (02:17 +0000)]
misched: bug in debug output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150043
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 8 Feb 2012 02:17:18 +0000 (02:17 +0000)]
whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150042
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 8 Feb 2012 02:17:16 +0000 (02:17 +0000)]
stale comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150041
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 8 Feb 2012 01:44:00 +0000 (01:44 +0000)]
add an explicit section on static constructors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150037
91177308-0d34-0410-b5e6-
96231b3b80d8
Kostya Serebryany [Wed, 8 Feb 2012 01:11:21 +0000 (01:11 +0000)]
Don't use static CTORs for the Attributes constants, while still keeping the class type-safe
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150031
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 8 Feb 2012 00:22:26 +0000 (00:22 +0000)]
Add support for a temporary forward decl type. We want this so we
can rauw forward declarations if we decide to emit the full type.
Part of rdar://
10809898
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150024
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 8 Feb 2012 00:17:07 +0000 (00:17 +0000)]
Remove tabs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150022
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Tue, 7 Feb 2012 23:56:08 +0000 (23:56 +0000)]
[fast-isel] Add support for indirect branches.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150014
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 7 Feb 2012 23:33:58 +0000 (23:33 +0000)]
Remove tabs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150012
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 7 Feb 2012 22:50:41 +0000 (22:50 +0000)]
Use LEA to adjust stack ptr for Atom. Patch by Andy Zhang.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150008
91177308-0d34-0410-b5e6-
96231b3b80d8
Hal Finkel [Tue, 7 Feb 2012 21:11:12 +0000 (21:11 +0000)]
Allow bugpoint to recognize -bb-vectorize
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150003
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Tue, 7 Feb 2012 19:36:01 +0000 (19:36 +0000)]
Correct use of const in ParseCommandLineOptions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149999
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 7 Feb 2012 18:58:19 +0000 (18:58 +0000)]
ocaml bindings: landing pad is now the last opcode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149997
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 7 Feb 2012 16:27:39 +0000 (16:27 +0000)]
Add a unittest for rotating a really big APInt.
Clang miscompiles it under certain circumstances, and it's a good exercise for APInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149986
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 7 Feb 2012 10:53:19 +0000 (10:53 +0000)]
Bitcode/BitstreamReader.h: Tweak for big endian hosts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149980
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 7 Feb 2012 08:42:29 +0000 (08:42 +0000)]
Rephrase to add clarity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149972
91177308-0d34-0410-b5e6-
96231b3b80d8
Anat Shemer [Tue, 7 Feb 2012 08:18:05 +0000 (08:18 +0000)]
test commit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149971
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 7 Feb 2012 07:09:28 +0000 (07:09 +0000)]
Do not fold ADD / SUB into load / store (to form pre-indexed, post-indexed
load / store) if the ADD / SUB has a live definition of CPSR.
Bug reported by David Meyer. Alas, no test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149970
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Tue, 7 Feb 2012 06:28:42 +0000 (06:28 +0000)]
Add instruction selection for 256-bit VPSHUFD and 128-bit VPERMILPS/VPERMILPD.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149968
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Tue, 7 Feb 2012 05:05:23 +0000 (05:05 +0000)]
Convert assert(0) to llvm_unreachable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149967
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Tue, 7 Feb 2012 02:50:20 +0000 (02:50 +0000)]
Convert assert(0) to llvm_unreachable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149961
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 7 Feb 2012 01:48:12 +0000 (01:48 +0000)]
Cache the sizes of vectors instead of calculating them all over the place.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149954
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 7 Feb 2012 01:27:51 +0000 (01:27 +0000)]
Reserve space in these vectors to prevent having to grow the array too
much. This gets us an addition 0.9% on 445.gobmk.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149952
91177308-0d34-0410-b5e6-
96231b3b80d8
Derek Schuff [Tue, 7 Feb 2012 00:28:46 +0000 (00:28 +0000)]
Fix win32 build breakage from bitcode streaming patch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149941
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Mon, 6 Feb 2012 23:50:07 +0000 (23:50 +0000)]
[fast-isel] Add support for ADDs with non-legal types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149934
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Mon, 6 Feb 2012 23:34:52 +0000 (23:34 +0000)]
This is a small patch with a couple of improvements for running lit with --debug:
1. Added a status note when a config file is loaded directly with load_config. This helps notice loads of lit.cfg from lit.site.cfg
2. Added a status note on the result of a config load. Previously, it was just notifying that it tries to load a config file. Now it will also say whether the load succeeded or the file wasn't found
The two changes give better visibility into which config files were actually loaded by lit. The effect is only on --debug runs.
Patch by Eli Bendersky!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149932
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Mon, 6 Feb 2012 22:51:18 +0000 (22:51 +0000)]
Expose TargetPassConfig to PEI Pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149927
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Mon, 6 Feb 2012 22:51:15 +0000 (22:51 +0000)]
Add TargetPassConfig to the PassManager for use inside passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149926
91177308-0d34-0410-b5e6-
96231b3b80d8
Kostya Serebryany [Mon, 6 Feb 2012 22:48:56 +0000 (22:48 +0000)]
The patch resolves the conflict between AddressSanitizer and load widening (GVN).
The problem initially reported by Mozilla folks (http://code.google.com/p/address-sanitizer/issues/detail?id=20),
but it also prevents us from enabling LLVM bootstrap with AddressSanitizer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149925
91177308-0d34-0410-b5e6-
96231b3b80d8