OSDN Git Service
Roman Divacky [Wed, 12 Sep 2012 14:47:47 +0000 (14:47 +0000)]
This patch corrects logic in PPCFrameLowering for save and restore of
nonvolatile condition register fields across calls under the SVR4 ABIs.
* With the 64-bit ABI, the save location is at a fixed offset of 8 from
the stack pointer. The frame pointer cannot be used to access this
portion of the stack frame since the distance from the frame pointer may
change with alloca calls.
* With the 32-bit ABI, the save location is just below the general
register save area, and is accessed via the frame pointer like the rest
of the save areas. This is an optional slot, so it must only be created
if any of CR2, CR3, and CR4 were modified.
* For both ABIs, save/restore logic is generated only if one of the
nonvolatile CR fields were modified.
I also took this opportunity to clean up an extra FIXME in
PPCFrameLowering.h. Save area offsets for 32-bit GPRs are meaningless
for the 64-bit ABI, so I removed them for correctness and efficiency.
Fixes PR13708 and partially also PR13623. It lets us enable exception handling
on PPC64.
Patch by William J. Schmidt!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163713
91177308-0d34-0410-b5e6-
96231b3b80d8
Roman Divacky [Wed, 12 Sep 2012 14:36:02 +0000 (14:36 +0000)]
Add support for AMD Geode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163710
91177308-0d34-0410-b5e6-
96231b3b80d8
Kristof Beyls [Wed, 12 Sep 2012 11:25:02 +0000 (11:25 +0000)]
Fix constant folding through bitcasts by no longer relying on undefined behaviour (converting NaN values between float and double).
SelectionDAG::getConstantFP(double Val, EVT VT, bool isTarget);
should not be used when Val is not a simple constant (as the comment in
SelectionDAG.h indicates). This patch avoids using this function
when folding an unknown constant through a bitcast, where it cannot be
guaranteed that Val will be a simple constant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163703
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Wed, 12 Sep 2012 11:06:26 +0000 (11:06 +0000)]
Add a flag to disable the code that looks for allocas which escaped the lifetime regions. This is useful for debugging. No testcase because without this check we fail on assertions when finding escaped allocas.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163702
91177308-0d34-0410-b5e6-
96231b3b80d8
James Molloy [Wed, 12 Sep 2012 10:18:23 +0000 (10:18 +0000)]
Add a function computeRegisterLiveness() to MachineBasicBlock. This uses analyzePhysReg() from r163694 to heuristically try and determine the liveness state of a physical register upon arrival at a particular instruction in a block.
The search for liveness is clipped to a specific number of instructions around the target MachineInstr, in order to avoid degenerating into an O(N^2) algorithm. It tries to use various clues about how instructions around (both before and after) a given MachineInstr use that register, to determine its state at the MachineInstr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163695
91177308-0d34-0410-b5e6-
96231b3b80d8
James Molloy [Wed, 12 Sep 2012 10:03:31 +0000 (10:03 +0000)]
Add an analyzePhysReg() function to MachineOperandIteratorBase that analyses an instruction's use of a physical register, analogous to analyzeVirtReg.
Rename RegInfo to VirtRegInfo so as not to be confused with the new PhysRegInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163694
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 12 Sep 2012 09:55:51 +0000 (09:55 +0000)]
When calling print directly on a global (eg from the debugger) it
was printing a newline that doesn't occur when printing other kinds
of LLVM values. Move the printing of that newline elsewhere, making
globals print the same as other values while leaving the output when
printing an entire module unchanged. Patch by Saša Tomić.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163693
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Wed, 12 Sep 2012 07:58:35 +0000 (07:58 +0000)]
Enable stack-coloring, in hope that the recent fixes will enable correct dragonegg self-hosting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163687
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Wed, 12 Sep 2012 06:56:16 +0000 (06:56 +0000)]
Make findLastUseBefore handle reg-unit liveness.
findLastUseBefore was previous considering virtreg liveness only, leading to
incorrect live intervals for reg units when instrs with physreg operands were
moved up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163685
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 12 Sep 2012 06:20:41 +0000 (06:20 +0000)]
Indentation fixes. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163682
91177308-0d34-0410-b5e6-
96231b3b80d8
Manman Ren [Wed, 12 Sep 2012 05:06:18 +0000 (05:06 +0000)]
Release build: guard dump functions with
"#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)"
No functional change. Update r163344.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163679
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Wed, 12 Sep 2012 04:57:37 +0000 (04:57 +0000)]
Stack coloring: remove lifetime intervals which contain escaped allocas.
The input program may contain intructions which are not inside lifetime
markers. This can happen due to a bug in the compiler or due to a bug in
user code (for example, returning a reference to a local variable).
This commit adds checks that all of the instructions in the function and
invalidates lifetime ranges which do not contain all of the instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163678
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 12 Sep 2012 00:26:55 +0000 (00:26 +0000)]
Add some support for dealing with an object pointer on arguments.
Part of rdar://
9797999
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163667
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 11 Sep 2012 23:47:08 +0000 (23:47 +0000)]
Improve tblgen code cleanliness: create an unknown_class, from which the unknown def inherits. Make tblgen check for that class, rather than checking for the def itself.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163664
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 11 Sep 2012 23:32:17 +0000 (23:32 +0000)]
Compute a map from register names to registers, rather than scanning the list of registers every time we want to look up a register by name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163659
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Tue, 11 Sep 2012 23:20:20 +0000 (23:20 +0000)]
Add documentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163658
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Tue, 11 Sep 2012 23:03:44 +0000 (23:03 +0000)]
Add a few virtual functions to the abstract MCParsedAsmOperand class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163655
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Tue, 11 Sep 2012 23:02:35 +0000 (23:02 +0000)]
Rename the isMemory() function to isMem(). No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163654
91177308-0d34-0410-b5e6-
96231b3b80d8
Manman Ren [Tue, 11 Sep 2012 22:23:19 +0000 (22:23 +0000)]
Release build: guard dump functions with
"#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)"
No functional change. Update r163339.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163653
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Tue, 11 Sep 2012 21:10:25 +0000 (21:10 +0000)]
StringSwitchify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163649
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Tue, 11 Sep 2012 20:57:04 +0000 (20:57 +0000)]
Simplify logic. No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163648
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Tue, 11 Sep 2012 19:09:56 +0000 (19:09 +0000)]
[ms-inline asm] Split the parsing of IR asm strings into GCC and MS variants.
Add support in the EmitMSInlineAsmStr() function for handling integer consts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163645
91177308-0d34-0410-b5e6-
96231b3b80d8
Manman Ren [Tue, 11 Sep 2012 17:43:35 +0000 (17:43 +0000)]
SimplifyCFG: preserve branch-weight metadata when creating a new switch from
a pair of switch/branch where both depend on the value of the same variable and
the default case of the first switch/branch goes to the second switch/branch.
Code clean up and fixed a few issues:
1> handling the case where some cases of the 2nd switch are invalidated
2> correctly calculate the weight for the 2nd switch when it is a conditional eq
Testing case is modified from Alastair's original patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163635
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 11 Sep 2012 16:34:08 +0000 (16:34 +0000)]
Add TRI::getSubRegIndexLaneMask().
Sub-register lane masks are bitmasks that can be used to determine if
two sub-registers of a virtual register will overlap. For example, ARM's
ssub0 and ssub1 sub-register indices don't overlap each other, but both
overlap dsub0 and qsub0.
The lane masks will be accurate on most targets, but on targets that use
sub-register indexes in an irregular way, the masks may conservatively
report that two sub-register indices overlap when the eventually
allocated physregs don't.
Irregular register banks also mean that the bits in a lane mask can't be
mapped onto register units, but the concept is similar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163630
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 11 Sep 2012 16:34:05 +0000 (16:34 +0000)]
Clean the sub-reg index composition maps at emission.
Preserve the Composites map in the CodeGenSubRegIndex class so it can be
used to determine which sub-register indices can actually be composed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163629
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 11 Sep 2012 16:34:02 +0000 (16:34 +0000)]
Add MCRI::getNumSubRegIndices() and start checking SubRegIndex ranges.
Apparently, NumSubRegIndices was completely unused before. Adjust it by
one to include the null subreg index, just like getNumRegs() includes
the null register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163628
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Tue, 11 Sep 2012 16:33:10 +0000 (16:33 +0000)]
Formatting. No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163627
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Tue, 11 Sep 2012 15:40:27 +0000 (15:40 +0000)]
Dragonegg selfhost exposed additional cases where alloca usage moved outside of lifetime markers. Disabling the pass for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163623
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Tue, 11 Sep 2012 13:48:35 +0000 (13:48 +0000)]
Enable stack coloring.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163617
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Tue, 11 Sep 2012 12:34:27 +0000 (12:34 +0000)]
Stack Coloring: Dont crash on dbg values which use stack frames.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163616
91177308-0d34-0410-b5e6-
96231b3b80d8
Evgeniy Stepanov [Tue, 11 Sep 2012 11:54:27 +0000 (11:54 +0000)]
CMake toolchain file for Android NDK.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163612
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 11 Sep 2012 07:50:40 +0000 (07:50 +0000)]
Add IRC handle.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163601
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Tue, 11 Sep 2012 06:15:32 +0000 (06:15 +0000)]
Make a bunch of lowering helper functions static instead of member functions. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163596
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Tue, 11 Sep 2012 04:19:21 +0000 (04:19 +0000)]
Change unsigned to a uint16_t in static disassembler tables to reduce the table size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163594
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 11 Sep 2012 02:55:37 +0000 (02:55 +0000)]
llvm/lib/Transforms/Utils/CMakeLists.txt: Update.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163593
91177308-0d34-0410-b5e6-
96231b3b80d8
Alex Rosenberg [Tue, 11 Sep 2012 02:46:18 +0000 (02:46 +0000)]
Add a pass that renames everything with metasyntatic names. This works well after using bugpoint to reduce the confusion presented by the original names, which no longer mean what they used to.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163592
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Tue, 11 Sep 2012 01:45:21 +0000 (01:45 +0000)]
Teach DAG combiner to constant fold FABS of a BUILD_VECTOR of ConstantFPs. Factor similar code out of FNEG DAG combiner.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163587
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Tue, 11 Sep 2012 01:17:24 +0000 (01:17 +0000)]
Add support for finding cacheflush on OpenBSD/mips64 platforms.
Patch by Brad Smith!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163584
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Tue, 11 Sep 2012 00:39:15 +0000 (00:39 +0000)]
Reorganize MachineScheduler interfaces and publish them in the header.
The Hexagon target decided to use a lot of functionality from the
target-independent scheduler. That's fine, and other targets should be
able to do the same. This reorg and API update makes that easy.
For the record, ScheduleDAGMI was not meant to be subclassed. Instead,
new scheduling algorithms should be able to implement
MachineSchedStrategy and be done. But if need be, it's nice to be
able to extend ScheduleDAGMI, so I also made that easier. The target
scheduler is somewhat more apt to break that way though.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163580
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Tue, 11 Sep 2012 00:39:12 +0000 (00:39 +0000)]
Remove unused declaration
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163579
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 10 Sep 2012 23:34:06 +0000 (23:34 +0000)]
Revert r160148 it seems to cause more problems than it should
right now. We'll fix PR13303 a different way.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163570
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 10 Sep 2012 23:34:03 +0000 (23:34 +0000)]
80-col fixup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163569
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 10 Sep 2012 23:34:00 +0000 (23:34 +0000)]
80-col fixup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163568
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 10 Sep 2012 23:33:57 +0000 (23:33 +0000)]
No reason to construct this twice.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163567
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Mon, 10 Sep 2012 23:09:27 +0000 (23:09 +0000)]
Add newline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163565
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Mon, 10 Sep 2012 22:50:57 +0000 (22:50 +0000)]
Update function names to conform to guidelines. No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163561
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Mon, 10 Sep 2012 22:30:35 +0000 (22:30 +0000)]
Revert r163556. Missed updates to tablegen files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163557
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Mon, 10 Sep 2012 22:23:45 +0000 (22:23 +0000)]
Update function names to conform to guidelines. No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163556
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Mon, 10 Sep 2012 22:04:54 +0000 (22:04 +0000)]
test/CodeGen/X86/ms-inline-asm.ll: Relax for non-darwin x86 targets. '##InlineAsm' could not be seen in other hosts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163554
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Mon, 10 Sep 2012 21:36:05 +0000 (21:36 +0000)]
[ms-inline asm] Properly emit the asm directives when the AsmPrinterVariant
and InlineAsmVariant don't match.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163550
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Mon, 10 Sep 2012 21:31:43 +0000 (21:31 +0000)]
Update test case for Release builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163549
91177308-0d34-0410-b5e6-
96231b3b80d8
Dmitri Gribenko [Mon, 10 Sep 2012 21:26:47 +0000 (21:26 +0000)]
Remove redundant semicolons which are null statements.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163547
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Mon, 10 Sep 2012 21:17:58 +0000 (21:17 +0000)]
Disable stack coloring because it makes dragonegg fail bootstrapping.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163545
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Mon, 10 Sep 2012 21:10:49 +0000 (21:10 +0000)]
[ms-inline asm] Pass the correct AsmVariant to the PrintAsmOperand() function
and update the printOperand() function accordingly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163544
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Mon, 10 Sep 2012 20:54:39 +0000 (20:54 +0000)]
[ms-inline asm] Add support for .att_syntax directive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163542
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Mon, 10 Sep 2012 20:15:49 +0000 (20:15 +0000)]
Enable stack coloring.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163539
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 10 Sep 2012 19:17:25 +0000 (19:17 +0000)]
Don't attempt to use flags from predicated instructions.
The ARM backend can eliminate cmp instructions by reusing flags from a
nearby sub instruction with similar arguments.
Don't do that if the sub is predicated - the flags are not written
unconditionally.
<rdar://problem/
12263428>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163535
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Mon, 10 Sep 2012 19:04:02 +0000 (19:04 +0000)]
[Object] Extract Elf_Ehdr. Patch by Hemant Kulkarni!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163532
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Mon, 10 Sep 2012 18:51:09 +0000 (18:51 +0000)]
Stack Coloring: Handle the case where END markers come before BEGIN markers properly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163530
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Liao [Mon, 10 Sep 2012 18:33:51 +0000 (18:33 +0000)]
Enhance PR11334 fix to support extload from v2f32/v4f32
- Fix an remaining issue of PR11674 as well
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163528
91177308-0d34-0410-b5e6-
96231b3b80d8
Sergei Larin [Mon, 10 Sep 2012 17:31:34 +0000 (17:31 +0000)]
Add "blocked" heuristic to the Hexagon MI scheduler.
Improve AQ instruction selection in the Hexagon MI scheduler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163523
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Ilseman [Mon, 10 Sep 2012 17:00:37 +0000 (17:00 +0000)]
Fold multiply by 0 or 1 when in UnsafeFPMath mode in SelectionDAG::getNode().
This folding happens as early as possible for performance reasons, and to make sure it isn't foiled by other transforms (e.g. forming FMAs).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163519
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Ilseman [Mon, 10 Sep 2012 16:56:31 +0000 (16:56 +0000)]
whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163518
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Liao [Mon, 10 Sep 2012 16:36:16 +0000 (16:36 +0000)]
Add boolean simplification support from CMOV
- If a boolean value is generated from CMOV and tested as boolean value,
simplify the use of test result by referencing the original condition.
RDRAND intrinisc is one of such cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163516
91177308-0d34-0410-b5e6-
96231b3b80d8
James Molloy [Mon, 10 Sep 2012 14:01:21 +0000 (14:01 +0000)]
Fix an assertion failure when optimising a shufflevector incorrectly into concat_vectors, and a followup bug with SelectionDAG::getNode() creating nodes with invalid types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163511
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Mon, 10 Sep 2012 13:20:00 +0000 (13:20 +0000)]
Minor cleanup. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163510
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Mon, 10 Sep 2012 13:17:58 +0000 (13:17 +0000)]
Stack Coloring: Debug prints to print the slot number and not the array index.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163509
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Mon, 10 Sep 2012 12:47:38 +0000 (12:47 +0000)]
Stack Coloring: When searching for disjoint regions, do not compare intervals twice or to theirself.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163508
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Mon, 10 Sep 2012 12:39:35 +0000 (12:39 +0000)]
Stack Coloring: Add support for multiple regions of the same slot, within a single basic block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163507
91177308-0d34-0410-b5e6-
96231b3b80d8
Elena Demikhovsky [Mon, 10 Sep 2012 12:13:11 +0000 (12:13 +0000)]
The VPSHUFB 256-bit instruction may be generated when one of input vector is undefined or zeroinitializer.
I've added the "zeroinitializer" case in this patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163506
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Mon, 10 Sep 2012 11:52:14 +0000 (11:52 +0000)]
Make helper function static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163504
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Mon, 10 Sep 2012 11:52:08 +0000 (11:52 +0000)]
Move bypassSlowDivision into the llvm namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163503
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Mon, 10 Sep 2012 11:52:00 +0000 (11:52 +0000)]
c bindings: revert LLVMConstInlineAsm to always use the default asm dialect.
- The C API should be stable
- InlineAsm::AsmDialect is not exposed to C
- The function didn't match the prototype so this was unreachable code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163502
91177308-0d34-0410-b5e6-
96231b3b80d8
Evgeniy Stepanov [Mon, 10 Sep 2012 10:32:29 +0000 (10:32 +0000)]
GTest on Android needs a custom tmpdir path.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163501
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Mon, 10 Sep 2012 08:51:46 +0000 (08:51 +0000)]
Fix a typo in the comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163496
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Mon, 10 Sep 2012 08:44:15 +0000 (08:44 +0000)]
Add an assertion that the frame index is indeed inside the declared lifetime region.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163495
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Mon, 10 Sep 2012 08:43:23 +0000 (08:43 +0000)]
Teach the DAGBuilder about lifetime markers which are generated from PHINodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163494
91177308-0d34-0410-b5e6-
96231b3b80d8
Hans Wennborg [Mon, 10 Sep 2012 07:44:22 +0000 (07:44 +0000)]
Fix style issues from r163302 pointed out by Evan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163491
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sun, 9 Sep 2012 23:41:11 +0000 (23:41 +0000)]
Move spaces to the right places. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163485
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sun, 9 Sep 2012 23:40:55 +0000 (23:40 +0000)]
Add missing space before {. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163484
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Sun, 9 Sep 2012 22:58:45 +0000 (22:58 +0000)]
Teach DAG combiner to constant fold fneg of a BUILD_VECTOR of constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163483
91177308-0d34-0410-b5e6-
96231b3b80d8
Aaron Ballman [Sun, 9 Sep 2012 20:34:25 +0000 (20:34 +0000)]
Fixing a type width warning with MSVC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163481
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sun, 9 Sep 2012 16:44:05 +0000 (16:44 +0000)]
DSE: Poking holes into a SetVector is expensive, avoid it if possible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163480
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sun, 9 Sep 2012 11:56:14 +0000 (11:56 +0000)]
LiveVariables: Compute a set of defs and kills to speed up updating LV during critical edge splitting.
Previously we checked if the register is def'd in a block via the def/use list a
nd walked the list of kills to check if the register is killed in a block. Both
of these checks can be made much cheaper by walking the block first and
recording all defs and kills.
This reduces the compile time of the test case from PR13651 from 40s to 15s at
-O2. The compile time is still dominated by LV updating but now the main culprit
is SparseBitVector's slowness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163478
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Sat, 8 Sep 2012 17:42:27 +0000 (17:42 +0000)]
Add instruction selection for ffloor of vectors when SSE4.1 or AVX is enabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163473
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Sat, 8 Sep 2012 12:07:24 +0000 (12:07 +0000)]
lit: Util.which(): Use os.path.isfile() instead of os.path.exists(), or it hits to the directory.
For example, which('loop-convert') returns 'loop-convert' when the directory 'loop-convert' exists.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163469
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Sat, 8 Sep 2012 07:46:05 +0000 (07:46 +0000)]
Use 256-bit alignment for constant pool value for 256-bit vector FNEG lowering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163463
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Sat, 8 Sep 2012 07:31:51 +0000 (07:31 +0000)]
Add support for lowering FABS of vector types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163461
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Sat, 8 Sep 2012 04:58:43 +0000 (04:58 +0000)]
Set operation action for FFLOOR to Expand for all vector types for X86. Set FFLOOR of v4f32 to Expand for ARM. v2f64 was already correct.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163458
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sat, 8 Sep 2012 04:32:13 +0000 (04:32 +0000)]
Revert "Add -exact-match option to FileCheck to allow clients to do exact matches without using regular expressions."
Turns out I did not need it after all. If we find a use for it in the future, we
can resurrect it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163457
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sat, 8 Sep 2012 04:25:29 +0000 (04:25 +0000)]
Add operator< for FoldingSetNodeID.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163454
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Sat, 8 Sep 2012 00:07:26 +0000 (00:07 +0000)]
Remove an incorrect assert during branch weight propagation.
Patch and test case by Alastair Murray!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163437
91177308-0d34-0410-b5e6-
96231b3b80d8
Anshuman Dasgupta [Fri, 7 Sep 2012 21:35:43 +0000 (21:35 +0000)]
Refactored DFA generator. Merged transition class into state class.
Patch by Ivan Llopard!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163424
91177308-0d34-0410-b5e6-
96231b3b80d8
Alex Rosenberg [Fri, 7 Sep 2012 21:34:50 +0000 (21:34 +0000)]
Add IRC handle entry to CREDITS.TXT as a test commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163423
91177308-0d34-0410-b5e6-
96231b3b80d8
Sandeep Patel [Fri, 7 Sep 2012 21:20:20 +0000 (21:20 +0000)]
Correct an unfortunately necessary typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163422
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 7 Sep 2012 21:08:01 +0000 (21:08 +0000)]
Fix alignment of .comm and .lcomm on mingw32.
For some reason .lcomm uses byte alignment and .comm log2 alignment so we can't
use the same setting for both. Fix this by reintroducing the LCOMM enum.
I verified this against mingw's gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163420
91177308-0d34-0410-b5e6-
96231b3b80d8
Jack Carter [Fri, 7 Sep 2012 20:38:18 +0000 (20:38 +0000)]
Initial relocations test for the Mips standalone assembler.
This is not an exhaustive set, but something we can build on.
Contributer: Vladimir Medic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163419
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Fri, 7 Sep 2012 20:23:29 +0000 (20:23 +0000)]
Fix indent.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163416
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 7 Sep 2012 18:56:10 +0000 (18:56 +0000)]
Contrary to what the documentation says, .lcomm alignment on COFF is in bytes, not power of 2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163405
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Fri, 7 Sep 2012 18:16:38 +0000 (18:16 +0000)]
Update function names to conform to guidelines. No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163401
91177308-0d34-0410-b5e6-
96231b3b80d8