- Nov 09, 2021
-
-
Sanjay Patel authored
-
Martin Storsjö authored
Even if building cxx_static in itself doesn't actually link in the requested unwinder, add a synthetic dependency so that building cxx_static makes sure that the unwinder that was requested to be used also gets built. This makes sure that tests (when run with just a plain "ninja check-cxx") actually use the newly built unwinder, as intended. Differential Revision: https://reviews.llvm.org/D113467
-
Nathan Sidwell authored
code-block needs a blank line Differential Revision: https://reviews.llvm.org/D113425
-
Nathan Sidwell authored
Some time back I extended GCC's '# NNN' line marker semantics. Specifically popping to a blank filename will restore the filename to that of the popped-to include. Restore to line 5 of including file (escaped BOL #'s to avoid git eliding them): \# 5 "" 2 Added documentation for this line control extension. This was useful in developing modules tests, but turned out to also be useful with machine-generated source code. Specifically, a generated include file that itself includes fragments from elsewhere. The ability to pop to the generated include file -- with its full path prefix -- is useful for diagnostic & debug purposes. For instance something like: // Machine generated -- DO NOT EDIT Type Var = { \# 7 "encoded.dsl" 1 // push to snippet-container {snippet, of, code} \# 6 " 2 // Restore to machined-generated source , }; // user-code ... \#include "dsl.h" ... That pop to "" will restore the filename to '..includepath../dsl.h', which is better than restoring to plain "dsl.h". Differential Revision: https://reviews.llvm.org/D113425 -
Simon Pilgrim authored
combineMulToPMADDWD is currently limited to legal types, but there's no reason why we can't handle any larger type that the existing SplitOpsAndApply code can use to split to legal X86ISD::VPMADDWD ops. This also exposed a missed opportunity for pre-SSE41 targets to handle SEXT ops from types smaller than vXi16 - without PMOVSX instructions these will always be expanded to unpack+shifts, so we can cheat and convert this into a ZEXT(SEXT()) sequence to make it a valid PMADDWD op. Differential Revision: https://reviews.llvm.org/D110995
-
Kazu Hirata authored
-
Vy Nguyen authored
PR/52372 Differential Revision: https://reviews.llvm.org/D112977
-
Matt Morehouse authored
Fixes a CHECK-failure caused by glibc's pthread_getattr_np implementation calling realloc. Essentially, Thread::GenerateRandomTag gets called during Thread::Init and before Thread::InitRandomState: HWAddressSanitizer: CHECK failed: hwasan_thread.cpp:134 "((random_buffer_)) != (0)" (0x0, 0x0) (tid=314) #0 0x55845475a662 in __hwasan::CheckUnwind() #1 0x558454778797 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) #2 0x558454766461 in __hwasan::Thread::GenerateRandomTag(unsigned long) #3 0x55845475c58b in __hwasan::HwasanAllocate(__sanitizer::StackTrace*, unsigned long, unsigned long, bool) #4 0x55845475c80a in __hwasan::hwasan_realloc(void*, unsigned long, __sanitizer::StackTrace*) #5 0x5584547608aa in realloc #6 0x7f6f3a3d8c2c in pthread_getattr_np #7 0x5584547790dc in __sanitizer::GetThreadStackTopAndBottom(bool, unsigned long*, unsigned long*) #8 0x558454779651 in __sanitizer::GetThreadStackAndTls(bool, unsigned long*, unsigned long*, unsigned long*, unsigned long*) #9 0x558454761bca in __hwasan::Thread::InitStackAndTls(__hwasan::Thread::InitState const*) #10 0x558454761e5c in __hwasan::HwasanThreadList::CreateCurrentThread(__hwasan::Thread::InitState const*) #11 0x55845476184f in __hwasan_thread_enter #12 0x558454760def in HwasanThreadStartFunc(void*) #13 0x7f6f3a3d6fa2 in start_thread #14 0x7f6f3a15b4ce in __clone Also reverts 7a3fb71c, as it's now unneeded. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D113045 -
serge-sans-paille authored
Detect when an identifier contains some Right-To-Left characters. This pass relates to https://trojansource.codes/ Differential Revision: https://reviews.llvm.org/D112914
-
Sergei Larin authored
Covers an extremely rare corner case on internal book keeping.
-
Kerry McLaughlin authored
Changes VPReplicateRecipe to extract the last lane from an unconditional, uniform store instruction. collectLoopUniforms will also add stores to the list of uniform instructions where Legal->isUniformMemOp is true. setCostBasedWideningDecision now sets the widening decision for all uniform memory ops to Scalarize, where previously GatherScatter may have been chosen for scalable stores. This fixes an assert ("Cannot yet scalarize uniform stores") in setCostBasedWideningDecision when we have a loop containing a uniform i1 store and a scalable VF, which we cannot create a scatter for. Reviewed By: sdesmalen, david-arm, fhahn Differential Revision: https://reviews.llvm.org/D112725 -
Valentin Clement authored
Add conversion pattern for the `fir.convert` operation. This patch is part of the upstreaming effort from fir-dev branch. This patch was previously landed with a truncated version that was failing the windows buildbot. Reviewed By: rovka, awarzynski Differential Revision: https://reviews.llvm.org/D113469 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Pavel Labath authored
This patch fixes an amusing bug where a Platform::Kill operation would happily terminate a proces on a completely different platform, as long as they have the same process ID. This was due to the fact that the implementation was iterating through all known (debugged) processes in order terminate them directly. This patch just deletes that logic, and makes everything go through the OS process termination APIs. While it would be possible to fix the logic to check for a platform match, it seemed to me that the implementation was being too smart for its own good -- accessing random Process objects without knowing anything about their state is risky at best. Going through the os ensures we avoid any races. I also "upgrade" the termination signal to a SIGKILL to ensure the process really dies after this operation. Differential Revision: https://reviews.llvm.org/D113184
-
Kristóf Umann authored
The alpha.security.cert section came right after alpha.security, making it look like checkers like alpha.security.MmapWriteExec belonged to that package. Differential Revision: https://reviews.llvm.org/D113397
-
Valentin Clement authored
This reverts commit 165879ec. Windows buildbot failure
-
Valentin Clement authored
Add conversion pattern for the `fir.convert` operation. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: rovka, awarzynski Differential Revision: https://reviews.llvm.org/D113469 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Sanjay Patel authored
(Cond & C) | (~bitcast(Cond) & D) --> bitcast (select Cond, (bc C), (bc D)) This is part of fixing: https://llvm.org/PR34047 That report shows a case where a bitcast is sitting between the select condition candidate and its 'not' value due to current cast canonicalization rules. There's a bitcast type restriction that might be violated in existing matching, but I still need to investigate if that is possible - Alive2 shows we can only do this transform safely when the bitcast is from narrow to wide vector elements (otherwise poison could leak into elements that were safe in the original code): https://alive2.llvm.org/ce/z/Hf66qh Differential Revision: https://reviews.llvm.org/D113035
-
Chris Jackson authored
Added a lit test that checks scev-based salvagaing does not select IVs that have a SCEV containing an undef. Original Differential Revision: https://reviews.llvm.org/D111810
-
Denys Shabalin authored
Reviewed By: ftynse, nicolasvasilache Differential Revision: https://reviews.llvm.org/D113476
-
Valentin Clement authored
-
Valentin Clement authored
This patch add conversion for primitive operations on complex types. - fir.addc - fir.subc - fir.mulc - fir.divc - fir.negc This adds also the type conversion for !fir.complex<KIND> type. This patch is part of the upstreaming effort from fir-dev branch. This patch was updated to avoid failure on windows buildbot. Flang codegen does not support windows target so we force the test to use a known target instead. Reviewed By: kiranchandramohan, rovka Differential Revision: https://reviews.llvm.org/D113434 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Chris Jackson authored
attempts Prevent the selection of IVs that have a SCEV containing an undef. Also prevent salvaging attempts for values for which a SCEV could not be created by ScalarEvolution and have only SCEVUknown. Reviewed by: Orlando Differential Revision: https://reviews.llvm.org/D111810
-
Florian Hahn authored
Without this patch, passingValueIsAlwaysUndefined will iterate over all instructions from I to the end of the basic block, even if the use is outside the block. This patch adds an early bail out, if the use instruction is outside I's BB. This can greatly reduce compile-time in cases where very large basic blocks are involved, with a large number of PHI nodes and incoming values. Note that the refactoring makes the handling of the case where I is a phi and Use is in PHI more explicit as well: for phi nodes, we can also directly bail out. In the existing code, we would iterate until we reach the end and return false. Based on an earlier patch by Matt Wala. Reviewed By: lebedev.ri Differential Revision: https://reviews.llvm.org/D113293
-
David Pagan authored
Added basic parsing/sema/serialization support for 'align' clause for use with 'allocate' directive.
-
Andrew Savonichev authored
This patch adds DUP+FMUL => FMUL_indexed pattern to InstCombiner. FMUL_indexed is normally selected during instruction selection, but it does not work in cases when VDUP and VMUL are in different basic blocks. Differential Revision: https://reviews.llvm.org/D99662
-
Salman Javed authored
Calling clang-tidy on ClangTidyDiagnosticConsumer.cpp gives a "unmatched NOLINTBEGIN without a subsequent NOLINTEND" warning. The "NOLINTBEGIN" and "NOLINTEND" string literals used in the implementation of `createNolintError()` get mistaken for actual NOLINTBEGIN/END comments used to suppress clang-tidy warnings. Rewrite the string literals so that they can no longer be mistaken for actual suppression comments. Differential Revision: https://reviews.llvm.org/D113472
-
Valentin Clement authored
This reverts commit b9bc64ba. flang-x86_64-windows is failing with this patch
-
Daniel Kiss authored
On Armv6-M the branch may not able to reach the _Unwind_Resume function because it's relocation(R_ARM_THM_JUMP11) is in -2048, 2047 range only. Reviewed By: chill, stuij, lenary Differential Revision: https://reviews.llvm.org/D113181
-
Simon Pilgrim authored
This patch merges FoldConstantVectorArithmetic back into FoldConstantArithmetic. Like FoldConstantVectorArithmetic we now handle vector ops with any operand count, but we currently still only handle binops for scalar types - this can be improved in future patches - in particular some common unary/trinary ops still have poor constant folding. There's one change in functionality causing test changes - FoldConstantVectorArithmetic bails early if the build/splat vector isn't all constant (with some undefs) elements, but FoldConstantArithmetic doesn't - it instead attempts to fold the scalar nodes and bails if they fail to regenerate a constant/undef result, allowing some additional identity/undef patterns to be handled. Differential Revision: https://reviews.llvm.org/D113300
-
Roman Lebedev authored
-
Alexey Lapshin authored
It is often useful to know which die is the parent of the current die. This patch adds information about parent offset into the dump: 0x0000000b: DW_TAG_compile_unit DW_AT_producer ("by_hand") 0x00000014: DW_TAG_base_type (0x0000000b) <<<<<<<<<<<<<< DW_AT_name ("int") Now it is easy to see which die is the parent of the current die. This patch makes that behaviour to be default. We can make it to be opt-in if neccessary. This functionality differs from already existed "--show-parents" in that sence that parent information is shown for all dies and only link to the immediate parent is shown. Differential Revision: https://reviews.llvm.org/D113406 -
Max Kazantsev authored
Refactor calculateIterationsToInvariance so that it doesn't need a magical constant to signify unknown answer.
-
Roman Lebedev authored
It is trivial to produce DemandedSrcElts given DemandedReplicatedElts, so don't pass the former. Also, it isn't really useful so far to have the overload taking the Mask, so just inline it.
-
Simon Pilgrim authored
Revert rGe1eec760 "[XCOFF][yaml2obj] support for the auxiliary file header." This is failing on MSVC builds: https://lab.llvm.org/buildbot/#/builders/86/builds/23436
-
Dmitry Makogon authored
This reapplies patch db289340. The test failures on build with expensive checks caused by the patch happened due to the fact that we sorted loop Phis in replaceCongruentIVs using llvm::sort, which shuffles the given container if the expensive checks are enabled, so equivalent Phis in the sorted vector had different mutual order from run to run. replaceCongruentIVs tries to replace narrow Phis with truncations of wide ones. In some test cases there were several Phis with the same width, so if their order differs from run to run, the narrow Phis would be replaced with a different Phi, depending on the shuffling result. The patch ae14fae0 fixed this issue by replacing llvm::sort with llvm::stable_sort.
-
Florian Hahn authored
This should fix build failures when built without assertions enabled, e.g. https://lab.llvm.org/buildbot/#/builders/205/builds/172 -
Florian Hahn authored
This patch adds a function to verify general properties of VPlans. The first check makes sure that all phi-like recipes are at the beginning of a block, with no other recipes in between. Note that this currently may not hold for VPBlendRecipes at the moment, as other recipes may be inserted before the VPBlendRecipe during mask creation. Note that this patch depends on D111300 and D111301, which fix code that breaks the checked invariant. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D111302
-
Valentin Clement authored
This patch add conversion for primitive operations on complex types. - fir.addc - fir.subc - fir.mulc - fir.divc - fir.negc This adds also the type conversion for !fir.complex<KIND> type. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: rovka Differential Revision: https://reviews.llvm.org/D113434 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Djordje Todorovic authored
Applying the same rules as for LLVM_BUILD_INSTRUMENTED build in the cmake files. By having this patch, we are able to disable/enable instrument+coverage build of the compiler-rt project when building instrumented LLVM. Differential Revision: https://reviews.llvm.org/D108127
-