- Sep 17, 2020
-
-
Sjoerd Meijer authored
Additional sanity checks were added to get.active.lane.mask's second argument, the loop tripcount/elementcount, in rG635b8751. Like the other (overflow) checks, skip this if tail-predication is forced. Differential Revision: https://reviews.llvm.org/D87769
-
Francesco Petrogalli authored
This patch prevents the `llvm.masked.gather` and `llvm.masked.scatter` intrinsics to be scalarized when invoked on scalable vectors. The change in `Function.cpp` is needed to prevent the warning that is raised when `getNumElements` is used in place of `getElementCount` on `VectorType` instances. The tests guards for regressions on this change. The tests makes sure that calls to `llvm.masked.[gather|scatter]` are still scalarized when: # the intrinsics are operating on fixed size vectors, and # the compiler is not targeting fixed length SVE code generation. Reviewed By: efriedma, sdesmalen Differential Revision: https://reviews.llvm.org/D86249
-
- Sep 16, 2020
-
-
Arthur Eubanks authored
'require<globals-aa>' is needed to make globals-aa work in NPM, since globals-aa is a module analysis but function passes cannot run module analyses on demand. So don't skip translating alias analyses to 'require<>'. Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D87743
-
Dmitry Preobrazhensky authored
WeakRefDirective should specify a directive to declare "a global as being a weak undefined symbol". The directive used by AMDGPU was incorrect - ".weakref" was intended for other purposes. The correct directive is ".weak" and it is already defined as default for ELF. So the redefinition was removed. Reviewers: arsenm, rampitec Differential Revision: https://reviews.llvm.org/D87762
-
Benjamin Kramer authored
Otherwise we'd get a linker error whenever decompositionDecl is ODR used.
-
Simon Pilgrim authored
Use the same DebugLoc that is called at the top of the method. Fixes some Wshadow static analyzer warnings.
-
Mircea Trofin authored
Also renamed the fields to follow style guidelines. Accessors help with readability - weight mutation, in particular, is easier to follow this way. Differential Revision: https://reviews.llvm.org/D87725
-
Matt Arsenault authored
This was asserting for GlobalISel. For SelectionDAG, this was passing this on the stack. Instead, scalarize this as if it were a 32-bit vector.
-
Sebastian Neubauer authored
Fix lowering and instruction selection for v3x16 types and enable InstCombine to emit them. This patch only implements it for the selection dag. GlobalISel tests in GlobalISel/llvm.amdgcn.image.load.1d.d16.ll and GlobalISel/llvm.amdgcn.image.store.2d.d16.ll still don't work. Differential Revision: https://reviews.llvm.org/D84420
-
Simon Pilgrim authored
Fixes clang static analayzer null dereference warning.
-
Jay Foad authored
Pre-gfx10 all MODE-setting instructions were S_SETREG_B32 which is marked as having unmodeled side effects, which makes the machine scheduler treat it as a barrier. Now that we have proper implicit $mode operands we can use a no-side-effects S_SETREG_B32_mode pseudo instead for setregs that only touch the FP MODE bits, to give the scheduler more freedom. Differential Revision: https://reviews.llvm.org/D87446
-
Jay Foad authored
This is a pre-commit for D87446 "[AMDGPU] Enable scheduling around FP MODE-setting instructions"
-
Simon Pilgrim authored
Now that we're getting better at combining shuffles of different vector widths, this can now be performed as part of the standard target shuffle combines and isn't required for cleanup. Exposed a minor issue in combineX86ShufflesRecursively where we failed to check if a shuffle's src ops were simple types.
-
Valentin Clement authored
Add missing operands to represent copin with readonly modifier, copyout with zero modifier, create with zero modifier and default clause. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D87733
-
Eugene Zhulenev authored
Enable inlining for Linalg dialect. Differential Revision: https://reviews.llvm.org/D87567
-
Dangeti Tharun kumar authored
https://bugs.llvm.org/show_bug.cgi?id=45932 assert(OutlinedFunctionCost >= Cloner.OutlinedRegionCost && "Outlined function cost should be no less than the outlined region") getting triggered in computeBBInlineCost. Intrinsics like "assume" are considered regular function calls while computing costs. This patch enables computeBBInlineCost to queries TTI for intrinsic call cost. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D87132
-
Alex Zinenko authored
Numerous MLIR functions return instances of `StringRef` to refer to a non-owning fragment of a string (usually owned by the context). This is a relatively simple class that is defined in LLVM. Provide a simple wrapper in the MLIR C API that contains the pointer and length of the string fragment and use it for Standard attribute functions that return StringRef instead of the previous, callback-based mechanism. Reviewed By: stellaraccident Differential Revision: https://reviews.llvm.org/D87677
-
Florian Hahn authored
-
Alexey Bataev authored
The base must be shared between the threads, threadprivates are not allowed to be bases for array-like reductions. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D85762
-
Paul C. Anagnostopoulos authored
-
Sanjay Patel authored
Also move variable declarations closer to usage and add code comments.
-
mydeveloperday authored
Ensure ClangFormatStyleOptions.rst can be regenerated from Format.h Patch By: YangZhihui Reviewed By: MyDeveloperDay Differential Revision: https://reviews.llvm.org/D87352
-
Sam Parker authored
Re-order some checks in ValidateMVEInst.
-
Sanjay Patel authored
-
Sanjay Patel authored
We bail out on small array size anyway.
-
Sanjay Patel authored
-
Sanjay Patel authored
'V' shadows a function argument.
-
Sam Parker authored
We've fixed the case where this could return an instruction after the given instruction, but also means that we can falsely return a 'unique' def when they could be one coming from the backedge of a loop. Differential Revision: https://reviews.llvm.org/D87751
-
Simon Pilgrim authored
Fixes clang static analayzer null dereference warning.
-
Sam McCall authored
-
Simon Pilgrim authored
At this stage the Module* shouldn't be null - add an assert to fix a clang static analyzer warning.
-
Simon Pilgrim authored
We dereference the Left pointer throughout the parseParens() function apart from this single case - just add an non-null assertion and drop the check. Fixes clang static analayzer null dereference warning.
-
Simon Pilgrim authored
Fixes static analyzer warning.
-
Adam Balogh authored
//AST Matcher// `hasBody` is a polymorphic matcher that behaves differently for loop statements and function declarations. The main difference is the for functions declarations it does not only call `FunctionDecl::getBody()` but first checks whether the declaration in question is that specific declaration which has the body by calling `FunctionDecl::doesThisDeclarationHaveABody()`. This is achieved by specialization of the template `GetBodyMatcher`. Unfortunately template specializations do not catch the descendants of the class for which the template is specialized. Therefore it does not work correcly for the descendants of `FunctionDecl`, such as `CXXMethodDecl`, `CXXConstructorDecl`, `CXXDestructorDecl` etc. This patch fixes this issue by using a template metaprogram. The patch also introduces a new matcher `hasAnyBody` which matches declarations which have a body present in the AST but not necessarily belonging to that particular declaration. Differential Revision: https://reviews.llvm.org/D87527
-
Adam Balogh authored
Placement new operators on non-object types cause crash in `bugprone-misplaced-pointer-arithmetic-in-alloc`. This patch fixes this issue. Differential Revision: https://reviews.llvm.org/D87683
-
Adam Czachorowski authored
This fixes a bug in dbf486c0, which introduced the Index section of the config, but did not register the parse method, so it didn't work in a YAML file (but did in a test). Differential Revision: https://reviews.llvm.org/D87710
-
Sam Parker authored
Clear the CurrentPredicate when we find an instruction which would completely overwrite the VPR. This fix essentially means we're back to not really being able to handle VPT instructions when tail predicating. Differential Revision: https://reviews.llvm.org/D87610
-
Sam Parker authored
Modify the unit test to inspect all MVE instructions and mark the load/store/move of vpr/p0 as valid, as well as the remaining scalar shifts. Differential Revision: https://reviews.llvm.org/D87753
-
Kirill Bobyrev authored
-