- Jan 05, 2021
-
-
Giulio Girardi authored
Sometimes compile_commands.json databases are created without an absolute path for the driver in the command field. By default the driver name is appended to the current directory, however if no driver is found in that location assume it was in the default PATH and try finding it there Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D93600
-
Sven van Haastregt authored
The argument to the `vec_step` builtin is not evaluated. Hoist the diagnostic for this in `Sema::CheckUnaryExprOrTypeTraitOperand` such that it comes before `Sema::CheckVecStepTraitOperandType`. A minor side-effect of this change is that it also produces the warning for `co_await` and `co_yield` as `sizeof` arguments now, which seems to be reasonable given that the warning is emitted for `typeid` already. Differential Revision: https://reviews.llvm.org/D91348
-
Kazushi (Jam) Marukawa authored
Support EH_SJLJ_LONGJMP, EH_SJLJ_SETJMP, and EH_SJLJ_SETUP_DISPATCH for SjLj exception handling. NC++ uses SjLj exception handling, so implement it first. Add regression tests also. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D94071
-
Simon Pilgrim authored
-
Paul Walker authored
CTLZ and CTPOP are lowered to CLZ and CNT instructions respectively. CTTZ is not a native SVE operation but is instead lowered to: CTTZ(V) => CTLZ(BITREVERSE(V)) In the case of fixed-length support using SVE we also lower CTTZ operating on NEON sized vectors because of its reliance on BITREVERSE which is also lowered to SVE intructions at these lengths. Differential Revision: https://reviews.llvm.org/D93607
-
Florian Hahn authored
The if in the lambda is not necessary. We can directly return the result of hasVF.
-
Simon Pilgrim authored
The WideIVInfo arg is only ever used as a const. Fixes cppcheck warning.
-
Simon Pilgrim authored
[Coroutines] checkAsyncFuncPointer - use cast<> instead of dyn_cast<> for dereferenced pointer. NFCI. We're immediately dereferencing the casted pointer, so use cast<> which will assert instead of dyn_cast<> which can return null. Fixes static analyzer warning.
-
Jeremy Morse authored
Loop strength reduction tries to recover debug variable values by looking for simple offsets from PHI values. In really extreme conditions there may be an offset used that won't fit in an int64_t, hitting an APInt assertion. This patch adds a regression test and adjusts the equivalent value collecting code to filter out any values where the offset can't be represented by an int64_t. This means that for very large integers with very large offsets, the variable location will become undef, which is the same behaviour as before 2a6782bb / D87494. Differential Revision: https://reviews.llvm.org/D94016
-
Andy Wingo authored
For wasm-ld table linking work to proceed, object files should indicate if they use an indirect function table. In the future this will be done by the usual symbols and relocations mechanism, but until that support lands in the linker, the presence of an `__indirect_function_table` in the object file's import section shows that the object file needs an indirect function table. Prior to https://reviews.llvm.org/D91637, this condition was met by all object files residualizing an `__indirect_function_table` import. Since https://reviews.llvm.org/D91637, the intention has been that only those object files needing an indirect function table would have the `__indirect_function_table` import. However, we missed the case of object files which use the table via `call_indirect` but which themselves do not declare any indirect functions. This changeset makes it so that when we lower a call to `call_indirect`, that we ensure that a `__indirect_function_table` symbol is present and that it will be propagated to the linker. A followup patch will revise this mechanism to make an explicit link between `call_indirect` and its associated indirect function table; see https://reviews.llvm.org/D90948. Differential Revision: https://reviews.llvm.org/D92840
-
Kazushi (Jam) Marukawa authored
-
Vassil Vassilev authored
Some clients which want to track state need the information whether a template was instantiated and made invalid. Differential revision: https://reviews.llvm.org/D92248
-
Simon Pilgrim authored
MemProfiler::insertDynamicShadowAtFunctionEntry - use cast<> instead of dyn_cast<> for dereferenced pointer. NFCI. We're immediately dereferencing the casted pointer, so use cast<> which will assert instead of dyn_cast<> which can return null. Fixes static analyzer warning.
-
Simon Pilgrim authored
SystemZTargetLowering::lowerDYNAMIC_STACKALLOC - use cast<> instead of dyn_cast<> for dereferenced pointer. NFCI. We're immediately dereferencing the casted pointer, so use cast<> which will assert instead of dyn_cast<> which can return null. Fixes static analyzer warning.
-
Simon Pilgrim authored
We're immediately dereferencing the casted pointer, so use cast<> which will assert instead of dyn_cast<> which can return null. Fixes static analyzer warning.
-
Fraser Cormack authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D94012
-
Kazushi (Jam) Marukawa authored
In order to support SJLJ exception, implement llvm.eh.sjlj.lsda first. Add regression test also. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D93811
-
Gabriel Hjort Åkerlund authored
TableGen would pick the largest RC for constraining the operands, which could potentially be an unallocatable RC. This patch removes selection of unallocatable RCs. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D93945
-
Martin Storsjö authored
This fixes warnings when building for 32 bit targets. Differential Revision: https://reviews.llvm.org/D91852
-
Med Ismail Bennani authored
This patch updates the llvm module map to reflect changes made in `5efc71e1` and fixes the module builds (`-DLLVM_ENABLE_MODULES=On`). Differential Revision: https://reviews.llvm.org/D94057 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Xun Li authored
This function no longer does anything useful. It probably did something originally but latter changes removed them and didn't clean up this function. The checks are already done in the callers as well. Differential Revision: https://reviews.llvm.org/D94055
-
Qiu Chaofan authored
The piece of code tries to use splat+shift to lower build_vector with repeating bit pattern. And immediate field of vector splat is only 5 bits (-16~15). It iterates over them one by one to find which shifts/rotates to number in build_vector. This patch removes code to try matching constant with algebraic right-shift because that's meaningless - any negative number's algebraic right-shift won't produce result smaller than itself. Besides, code (int)((unsigned)i >> j) means logical shift-right in C. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D93937
-
Qiu Chaofan authored
This patch uses update_llc_check script to update vec_constants.ll, and add two cases to cover 'vsplti+vsldoi' with 16-bit and 24-bit offset.
-
QingShan Zhang authored
Current implementation assumes that, each MachineConstantPoolValue takes up sizeof(MachineConstantPoolValue::Ty) bytes. For PowerPC, we want to lump all the constants with the same type as one MachineConstantPoolValue to save the cost that calculate the TOC entry for each const. So, we need to extend the MachineConstantPoolValue that break this assumption. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D89108
-
Evandro Menezes authored
Rename the class `RISCVUnaryAAMask` to `RISCVBinaryAAAMask`, since it has two input arguments.
-
Qiu Chaofan authored
Current update_llc_test_checks.py cannot generate checks for AIX (powerpc64-ibm-aix-xcoff) properly. Assembly generated is little bit different from Linux. So I use begin function comment here to capture function name. Reviewed By: MaskRay, steven.zhang Differential Revision: https://reviews.llvm.org/D93676
-
Juneyoung Lee authored
This is a tiny update to fold gep poison into poison. :) Alive2 proofs: https://alive2.llvm.org/ce/z/7Nwdri https://alive2.llvm.org/ce/z/sDP4sC
-
Juneyoung Lee authored
-
Heejin Ahn authored
These are not used anymore. Reviewed By: tlively Differential Revision: https://reviews.llvm.org/D94036
-
Arthur Eubanks authored
Matches the legacy pass. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D94028
-
Roman Lebedev authored
... which requires not deleting an edge that just got deleted, because we could be dealing with a block that didn't go through ConstantFoldTerminator() yet, and thus has a degenerate cond br with matching true/false destinations.
-
Roman Lebedev authored
[SimplifyCFG] SimplifyEqualityComparisonWithOnlyPredecessor(): switch to non-permissive DomTree updates ... which requires not deleting an edge that just got deleted.
-
Roman Lebedev authored
... which requires not deleting an edge that just got deleted.
-
Roman Lebedev authored
... which requires not inserting an edge that already exists.
-
Roman Lebedev authored
Notably, this doesn't switch *every* case, remaining cases don't actually pass sanity checks in non-permissve mode, and therefore require further analysis. Note that SimplifyCFG still defaults to not preserving DomTree by default, so this is effectively a NFC change.
-
Roman Lebedev authored
Being stricter will catch issues that would be just papered over in permissive mode, and is likely faster.
-
Petr Hosek authored
devtoolset-10 has just been released so look for it as well. Patch By: stephan.dollberg Differential Revision: https://reviews.llvm.org/D92792
-
Thorsten Schütt authored
This reverts commit efc82c4a.
-
Sanjay Patel authored
While here, rename the inaccurate getRecurrenceBinOp() because that was also used to get CmpInst opcodes. The recurrence/reduction kind should always refer to the expected opcode for a reduction. SLP appears to be the only direct caller of createSimpleTargetReduction(), and that calling code ideally should not be carrying around both an opcode and a reduction kind. This should allow us to generalize reduction matching to use intrinsics instead of only binops.
-
Thorsten Schütt authored
Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D93765
-