- Jul 21, 2021
-
-
Arthur Eubanks authored
In weird cases, the inliner will inline internal recursive functions, sometimes causing them to have no more uses, in which case the inliner will mark the function to be deleted. The function is actually deleted after the call to updateCGAndAnalysisManagerForCGSCCPass(). In updateCGAndAnalysisManagerForCGSCCPass(), UR.UpdatedC may be set to the SCC containing the function to be deleted. Then the inliner calls CG.removeDeadFunction() which can cause that SCC to be deleted, even though it's still stored in UR.UpdatedC. We could potentially check in the wrappers/pass managers if UR.UpdatedC is in UR.InvalidatedSCCs before doing anything with it, but it's safer to do this as close to possible to the call to CG.removeDeadFunction() to avoid issues with allocating a new SCC in the same address as the deleted one. It's hard to find a small test case since we need to have recursive internal functions be reachable from non-internal functions, yet they need to become non-recursive and not referenced by other functions when inlined. Similar to https://reviews.llvm.org/D106306. Fixes PR50788. Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D106405
-
Jon Roelofs authored
This came out of post-commit review: https://reviews.llvm.org/D105953#inline-1012919 Thanks uabelho!
-
Eric Astor authored
Add support for all built-in text macros supported by ML64: @Date, @Time, @FileName, @FileCur, and @CurSeg. Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D104965
-
Eric Astor authored
Support @Version and @Line as built-in symbols. For now, resolves @Version to 1427 (the same as for the VS 2019 release of ML.EXE). Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D104964
-
Geoffrey Martin-Noble authored
This has been deprecated for a while and there are no in-tree usages. I'm not aware of any out-of-tree usages either.
-
Pushpinder Singh authored
With this patch, OpenMP on AMDGCN will use the math functions provided by ROCm ocml library. Linking device code to the ocml will be done in the next patch. Reviewed By: JonChesterfield, jdoerfert, scchan Differential Revision: https://reviews.llvm.org/D104904
-
Peter Steinfeld authored
I'd previously merged this into the fir-dev branch. This change is to do the same thing to the main branch of llvm-project. Differential Revision: https://reviews.llvm.org/D106294
-
Uday Bondhugula authored
AffineForOp's folding hook is expected to fold away trivially empty affine.for. This allows simplification to happen as part of the canonicalizer and from wherever the folding hook is used. While more complex analysis based zero trip count detection is available from other passes in analysis and transforms, simple and inexpensive folding had been missing. Also, update/improve affine.for op documentation clarifying semantics of the result values for zero trip count loops. Differential Revision: https://reviews.llvm.org/D106123
-
Marek Kurdej authored
This is a spin-off from D79555 review, that with this patch will be able to use `__libcpp_copysign` instead of adhoc `__copysign_constexpr` helper. Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D106364
-
Uday Bondhugula authored
Introduce a new rewrite driver (MultiOpPatternRewriteDriver) to rewrite a supplied list of ops and other ops. Provide a knob to restrict rewrites strictly to those ops or also to affected ops (but still not to completely related ops). This rewrite driver is commonly needed to run any simplification and cleanup at the end of a transforms pass or transforms utility in a way that only simplifies relevant IR. This makes it easy to write test cases while not performing unrelated whole IR simplification that may invalidate other state at the caller. The introduced utility provides more freedom to developers of transforms and transform utilities to perform focussed and local simplification. In several cases, it provides greater efficiency as well as more simplification when compared to repeatedly calling `applyOpPatternsAndFold`; in other cases, it avoids the need to undesirably call `applyPatternsAndFoldGreedily` to do unrelated simplification in a FuncOp. Update a few transformations that were earlier using applyOpPatternsAndFold (SimplifyAffineStructures, affineDataCopyGenerate, a linalg transform). TODO: - OpPatternRewriteDriver can be removed as it's a special case of MultiOpPatternRewriteDriver, i.e., both can be merged. Differential Revision: https://reviews.llvm.org/D106232
-
Quinn Pham authored
Moving `llvm/test/CodeGen/builtins-ppc-xlcompat-fp.ll` to `llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-fp.ll`
-
David Spickett authored
The llvm test added in e002d251 was missing a REQUIRES. Failed to run on our AArch64 only bot: https://lab.llvm.org/buildbot/#/builders/171/builds/1262
-
Kerry McLaughlin authored
Reverting patch due to buildbot failures. This reverts commit e22a5996.
-
Simon Pilgrim authored
-
Kazu Hirata authored
The last use was removed On Jun 3, 2020 in commit 2a6c8715.
-
Quinn Pham authored
This patch is in a series of patches to provide builtins for compatibility with the XL compiler. This patch adds builtins related to floating point operations Reviewed By: #powerpc, nemanjai, amyk, NeHuang Differential Revision: https://reviews.llvm.org/D103986
-
Jakub Kuderski authored
Make it easier to initialize small maps inline. Note that DenseMap already has an initializer_list constructor. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D106363
-
Simon Pilgrim authored
-
Hedin Garca authored
Incorporated the varied functions for nextafter and refactored NextAfterTest.h to correctly define bitWidthOfType for both Linux and Windows; by letting FloatProperties take care of the directives' logic based on the platform being used. This allows to successfully run nextafter's tests. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D106395
-
Sebastian Neubauer authored
The killed flag is not always set. E.g. when a variable is used in a loop, it is never marked as killed, although it is unused in following basic blocks. Also, we try to deprecate kill flags and not use them. Check if the register is live in the endif block. If not, consider it killed in the then and else blocks. The vgpr-liverange tests have two new tests with loops (pre-committed, so the diff is visible). I also needed to change the subtarget to gfx10.1, otherwise calls are not working. Differential Revision: https://reviews.llvm.org/D106291
-
Sebastian Neubauer authored
-
Hedin Garca authored
Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D106391
-
Hedin Garca authored
Windows fenv_t does not include the MXCSR register and the unused bits at the end of the x87 status. So we exclude them in our struct definitions to make it easy to read/write the state. getEnv and setEnv were also excluded to avoid using MXCSR, but a forthcoming patch will handle these functions. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D106386
-
Deep Majumder authored
This patch: - Fixes how the std-namespace test is written in SmartPtrModelling (now accounts for functions with no Decl available) - Adds the smart pointer checker flag check where it was missing Differential Revision: https://reviews.llvm.org/D106296
-
Kirill Bobyrev authored
* Due to the LLVM's JSON library changes (?), FuzzyFindRequest serialization is no longer valid since arrays are serialized as llvm::json::Array already. Hence, current implementation creates a nested array. * YAML format is no longer the default, mention this for the benchmark. * FIXME is no longer relevant. I ran benchmarks that showed no improvement with priority_queue years ago. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D106432
-
Guillaume Chatelet authored
This patch allows iterating typed enum via the ADT/Sequence utility. It also changes the original design to better separate concerns: - `StrongInt` only deals with safe `intmax_t` operations, - `SafeIntIterator` presents the iterator and reverse iterator interface but only deals with safe `StrongInt` internally. - `iota_range` only deals with `SafeIntIterator` internally. This design ensures that operations are always valid. In particular, "Out of bounds" assertions fire when: - the `value_type` is not representable as an `intmax_t` - iterator operations make internal computation underflow/overflow - the internal representation cannot be converted back to `value_type` Differential Revision: https://reviews.llvm.org/D106279
-
Simon Pilgrim authored
-
David Spickett authored
Since d564cfb5 moved __hwasan_tag_mismatch4 this test has been reporting a frame 0 of __hwasan_tag_mismatch_v2. This failure can be seen on our bots: https://lab.llvm.org/buildbot/#/builders/185/builds/170 Before the change: #0 0xaaaaba100e40 in main <...>/register-dump-read.c:21:10 After the change: #0 0xaaaab8494bec in __hwasan_tag_mismatch_v2 <...>/hwasan/hwasan_tag_mismatch_aarch64.S:147 #1 0xaaaab84b4df8 in main <..>/register-dump-read.c:14:10 Update the test to check for a main frame as either frame 0 or frame 1.
-
Roman Lebedev authored
-
Simon Pilgrim authored
IFSStub.cpp - consistently use default case to silence 'not all control paths return' MSVC warnings. NFCI.
-
David Green authored
Pulled out of D106166, this modifies getReductionPatternCost to use PatternMatchers, hopefully simplifying the code a little.
-
Jay Foad authored
Rename getBufferOffsetForMMO to updateBufferMMO and pass in the MMO to be updated, in preparation for the bug fix in D106284. Call updateBufferMMO consistently for all buffer intrinsics, even the ones that use setBufferOffsets to decompose a combined offset expression. Add a getIdxEn helper function. Differential Revision: https://reviews.llvm.org/D106354
-
Gabor Marton authored
Differential Revision: https://reviews.llvm.org/D106370
-
Simon Tatham authored
This is part of a patch series working towards the ability to make SourceLocation into a 64-bit type to handle larger translation units. NFC: this patch introduces typedefs for the integer type used by SourceLocation and makes all the boring changes to use the typedefs everywhere, but for the moment, they are unconditionally defined to uint32_t. Patch originally by Mikhail Maltsev. Reviewed By: tmatheson Differential Revision: https://reviews.llvm.org/D105492
-
Sam McCall authored
-
Rosie Sumpter authored
Make getLatchCmpInst non-static and use it in LoopFlatten as a more robust way of identifying the compare. Differential Revision: https://reviews.llvm.org/D106256
-
Sven van Haastregt authored
Add the builtins defined by Section 40 "Extended Bit Operations" in the OpenCL Extension Specification. Differential Revision: https://reviews.llvm.org/D106267
-
Kerry McLaughlin authored
If a reduction Phi has a single user which `AND`s the Phi with a type mask, `lookThroughAnd` will return the user of the Phi and the narrower type represented by the mask. Currently this is only used for arithmetic reductions, whereas loops containing logical reductions will create a reduction intrinsic using the widened type, for example: for.body: %phi = phi i32 [ %and, %for.body ], [ 255, %entry ] %mask = and i32 %phi, 255 %gep = getelementptr inbounds i8, i8* %ptr, i32 %iv %load = load i8, i8* %gep %ext = zext i8 %load to i32 %and = and i32 %mask, %ext ... ^ this will generate an and reduction intrinsic such as the following: call i32 @llvm.vector.reduce.and.v8i32(<8 x i32>...) The same example for an add instruction would create an intrinsic of type i8: call i8 @llvm.vector.reduce.add.v8i8(<8 x i8>...) This patch changes AddReductionVar to call lookThroughAnd for other integer reductions, allowing loops similar to the example above with reductions such as and, or & xor to vectorize. Reviewed By: david-arm, dmgreen Differential Revision: https://reviews.llvm.org/D105632 -
Jan Kratochvil authored
My D99653 implemented a getter GetRnglist() for m_rnglist_table. That was confusing as the getter returns DWARFDebugRnglistTable which contains DWARFDebugRnglist as its elements.
-
Cullen Rhodes authored
Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D105566
-