| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Pulled out the similar CONCAT_VECTORS creation code from the 2/3 operand getNode() calls (to handle all UNDEF and all BUILD_VECTOR cases). Added a similar handler to the general getNode() call as well.
llvm-svn: 256709
|
| |
|
|
|
|
| |
Many of these could be much better if we just lowered them all as shuffles - especially for the 256-bit vectors.
llvm-svn: 256708
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
There are a number of files in the tree which have been accidentally checked in with DOS line endings. Convert these to native line endings.
There are also a few files which have DOS line endings on purpose, and I have set the svn:eol-style property to 'CRLF' on those.
Reviewers: joerg, aaron.ballman
Subscribers: aaron.ballman, sanjoy, dsanders, llvm-commits
Differential Revision: http://reviews.llvm.org/D15848
llvm-svn: 256707
|
| |
|
|
|
|
| |
As mentioned on D14261, an upcoming patch will improve combines of insertps instructions.
llvm-svn: 256706
|
| |
|
|
|
|
| |
This is mainly test cases for improvements to insertps matching, but pre-SSE41 shuffles could be improved as well
llvm-svn: 256705
|
| |
|
|
|
|
| |
empty before printing. The loop can be made to print the same thing if the loop is empty. NFC
llvm-svn: 256703
|
| |
|
|
| |
llvm-svn: 256702
|
| |
|
|
| |
llvm-svn: 256701
|
| |
|
|
| |
llvm-svn: 256700
|
| |
|
|
|
|
| |
comparison for readability. NFC
llvm-svn: 256699
|
| |
|
|
| |
llvm-svn: 256698
|
| |
|
|
|
|
| |
still emitted a closing curly brace.
llvm-svn: 256697
|
| |
|
|
| |
llvm-svn: 256696
|
| |
|
|
| |
llvm-svn: 256695
|
| |
|
|
| |
llvm-svn: 256694
|
| |
|
|
|
|
| |
Fix build break introduced by r256691.
llvm-svn: 256692
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
The handler list must be nonempty and consist solely of CatchPads.
Reviewers: rnk, andrew.w.kaylor, majnemer
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D15842
llvm-svn: 256691
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Summary: A catchswitch cannot be a parent of a cleanuppad or another catchswitch.
Reviewers: rnk, andrew.w.kaylor, majnemer
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D15841
llvm-svn: 256690
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Add a pass to update catchrets when their successors get cloned; the
existing pass doesn't catch these because it walks the funclet whose
blocks are being cloned but the catchret is in a child funclet.
Also update the test for removing incoming PHI values; when the
predecessor is a catchret, the relevant color is the catchret's parentPad,
not its block's color.
Reviewers: andrew.w.kaylor, rnk, majnemer
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D15840
llvm-svn: 256689
|
| |
|
|
|
|
|
|
|
|
| |
without braces.
While the original code would work with or without braces, it makes sense to
set HaveSemi to true only if (!HaveSemi), otherwise it's already true, so I
put the assignment inside the if block. This addresses PR25998.
llvm-svn: 256688
|
| |
|
|
|
|
|
|
| |
Recolor the IR to make sure our computed colors are not hiding any bugs.
Also, verifyFunction if we are running some post-preparation operations;
some of these operations can hide latent bugs.
llvm-svn: 256687
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
LLVM's targets need to know if stack pointer adjustments occur after the
prologue. This is needed to correctly determine if the red-zone is
appropriate to use or if a frame pointer is required.
Normally, LLVM can figure this out very precisely by reasoning about the
contents of the MachineFunction. There is an interesting corner case:
inline assembly.
The vast majority of inline assembly which will perform a push or pop is
done so to pair up with pushf or popf as appropriate. Unfortunately,
this inline assembly doesn't mark the stack pointer as clobbered
because, well, it isn't. The stack pointer is decremented and then
immediately incremented. Because of this, LLVM was changed in r256456
to conservatively assume that inline assembly contain a sequence of
stack operations. This is unfortunate because the vast majority of
inline assembly will not end up manipulating the stack pointer in any
way at all.
Instead, let's provide a more principled solution: an intrinsic.
FWIW, other compilers (MSVC and GCC among them) also provide this
functionality as an intrinsic.
llvm-svn: 256685
|
| |
|
|
| |
llvm-svn: 256682
|
| |
|
|
| |
llvm-svn: 256681
|
| |
|
|
|
|
| |
remove a layering violation in the Util library.
llvm-svn: 256680
|
| |
|
|
| |
llvm-svn: 256679
|
| |
|
|
| |
llvm-svn: 256678
|
| |
|
|
| |
llvm-svn: 256677
|
| |
|
|
| |
llvm-svn: 256676
|
| |
|
|
| |
llvm-svn: 256675
|
| |
|
|
|
|
|
| |
The version with OpBundles was missed in:
http://reviews.llvm.org/rL255555
llvm-svn: 256674
|
| |
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D15770
llvm-svn: 256673
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Not folding these cases tends to avoid partial register updates:
sqrtss (%eax), %xmm0
Has a partial update of %xmm0, while
movss (%eax), %xmm0
sqrtss %xmm0, %xmm0
Has a clobber of the high lanes immediately before the partial update,
avoiding a potential stall.
Given this, we only want to fold when optimizing for size.
This is consistent with the patterns we already have for some of
the fp/int converts, and in X86InstrInfo::foldMemoryOperandImpl()
Differential Revision: http://reviews.llvm.org/D15741
llvm-svn: 256671
|
| |
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D15808
llvm-svn: 256670
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
r252440 to the Hexagon target.
This restores the previous behavior of not including the mnemonic in the classes table for every target that starts instruction lines with the mnemonic. Not only did the table size increase by 1 entry, but the class enum increased in size which caused every class in the array to increase in size. It also grew the size of the function that parsers tokens into classes by a substantial amount.
This adds a new HasMnemonicFirst flag to all AsmParsers. It's set to 1 by default and Hexagon target overrides it to 0.
For the X86 target alone this recovers 324KB of size on the llvm-mc executable.
I believe the current state is still a bad design choice for the Hexagon target as it causes most of the parsing to do a linear search through the entire match table to comparing operands against every instruction until it finds one that works. At least for the other targets we do a binary search based on mnemonic over which to do the linear scan.
llvm-svn: 256669
|
| |
|
|
| |
llvm-svn: 256668
|
| |
|
|
|
|
|
|
|
|
| |
This is part of the effort/prepration to reduce the size
instr-pgo (object, binary, memory footprint, and raw data).
The functionality is currently off by default and not yet
used by any clients.
llvm-svn: 256667
|
| |
|
|
|
|
| |
of trying to search characters around the token. No functional change intended. Verified for in-tree targets.
llvm-svn: 256660
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
actual""
This reverts commit r256642 and restores r256620 now that Tobias has
updated Polly.
There are still some potential problems with the code in Polly that I've
sent post-commit review about, but they're unlikely to break anything in
practice, and I'd like to avoid the rest of LLVM and Clang regressing
here.
llvm-svn: 256656
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
shift right (PR25900)
This is a fix for:
https://llvm.org/bugs/show_bug.cgi?id=25900
If we think that an arithmetic right shift of a power of two is always a power of two,
an sdiv gets wrongly converted to udiv.
Differential Revision: http://reviews.llvm.org/D15827
llvm-svn: 256655
|
| |
|
|
|
|
|
|
| |
As suggested in review for r255909, rename MDMaterialized to AllowTemps,
and identify the name of the boolean flag being set in calls to
saveMetadataList.
llvm-svn: 256653
|
| |
|
|
|
|
|
|
|
|
|
|
| |
As suggested in review for r255909, add a way to ensure that temporary
MD used as keys in the MetadataToID map during ThinLTO importing are not
RAUWed.
Add support for marking an MDNode as not replaceable. Clear the new
CanReplace flag when adding a temporary MD node to the MetadataToID map
and clear it when destroying the map.
llvm-svn: 256648
|
| |
|
|
|
|
|
|
|
|
|
| |
Add an assert suggested in review for r255909 to ensure that MDNodes
saved in the map used for metadata linking are either temporary or
resolved.
Also add a comment clarifying why we may need to save off non-MDNode
metadata.
llvm-svn: 256646
|
| |
|
|
| |
llvm-svn: 256645
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The commit we revert is rather small, but it enables a larger piece of new
infrastructure that allows to detected misuses of pointer-traits at compile
time. Unfortunately, this change breaks with the use of incomplete types (e.g.
in Polly). As I am not aware of a simple fix on the Polly side, I temporarely
revert this commit to clean the bots and sync-up with Chandler how to best
adapt to these recent changes.
This reverts commit https://llvm.org/svn/llvm-project/llvm/trunk@256620.
llvm-svn: 256642
|
| |
|
|
|
|
| |
outputting to a raw_ostream. NFC
llvm-svn: 256628
|
| |
|
|
|
|
| |
switch the first time we emit a case. If the header was never emitted just print the default at the end. NFC
llvm-svn: 256627
|
| |
|
|
| |
llvm-svn: 256626
|
| |
|
|
|
|
| |
class so we can reduce some parameters. NFC
llvm-svn: 256625
|
| |
|
|
|
|
| |
types of addAsmOperand. Simplify some code by using StringRef::find instead of std::find. These were previously done in r247527 and r247528, but another commit seems to have erased them. NFC
llvm-svn: 256624
|