- Oct 25, 2021
-
-
Manas authored
This patch selects all cmake options and passes them to global cmake command while building LLVM inside satest docker container. Prior to this, the cmake command was hard-coded and this would consume a huge amount of memory while building. There was no support to pass extra cmake options for the build, except for changing the command manually. This patch allows testers to pass all "-D*" cmake options to the build. Reviewed By: vsavchenko Differential Revision: https://reviews.llvm.org/D105447 Patch by: @manas (Manas Gupta)
-
Balazs Benics authored
This patch adds a checker checking `std::string` operations. At first, it only checks the `std::string` single `const char *` constructor for nullness. If It might be `null`, it will constrain it to non-null and place a note tag there. Reviewed By: martong Differential Revision: https://reviews.llvm.org/D111247
-
Pavel Labath authored
-
Michał Górny authored
Return results of URI parsing as 'struct URI' instead of assigning them via output parameters. Differential Revision: https://reviews.llvm.org/D112314
-
Nikita Popov authored
Currently strip.invariant/launder.invariant are handled by constructing constant expressions with the intrinsics skipped. This takes an alternative approach of accumulating the offset using stripAndAccumulateConstantOffsets(), with a flag to look through invariant.group intrinsics. Differential Revision: https://reviews.llvm.org/D112382
-
Florian Hahn authored
At the moment a dummy entry block is created at the beginning of VPlan construction. This dummy block is later removed again. This means it is not easy to identify the VPlan header block in a general fashion, because during recipe creation it is the single successor of the entry block, while later it is the entry block. To make getting the header easier, just skip creating the dummy block. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D111299
-
Michał Górny authored
Differential Revision: https://reviews.llvm.org/D112365
-
Jingu Kang authored
%3:gpr32 = ORRWrs $wzr, %2, 0 %4:gpr64 = SUBREG_TO_REG 0, %3, %subreg.sub_32 If AArch64's 32-bit form of instruction defines the source operand of ORRWrs, we can remove the ORRWrs because the upper 32 bits of the source operand are set to zero. Differential Revision: https://reviews.llvm.org/D110841
-
Pavel Labath authored
-
Pavel Labath authored
Front-load the first_valid_code_address check, so that we avoid creating the function object (instead of simply refusing to use it in queries). Differential Revision: https://reviews.llvm.org/D112310
-
Nikita Popov authored
Use dyn_cast_or_null and convert one of the checks into an assertion. SCEV is a per-function analysis.
-
Shraiysh Vaishay authored
Splitting the WsLoop tests they were getting harder to debug with the offsets over 100 for some of them. Reviewed By: clementval Differential Revision: https://reviews.llvm.org/D112407
-
Kazu Hirata authored
This patch fixes: llvm/lib/Analysis/ScalarEvolution.cpp:12770:37: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
-
Max Kazantsev authored
Mass forgetMemoizedResults can be done more efficiently than bunch of individual invocations of helper because we can traverse maps being updated just once, rather than doing this for each invidivual SCEV. Should be NFC and supposedly improves compile time. Differential Revision: https://reviews.llvm.org/D112294 Reviewed By: reames
-
Max Kazantsev authored
When forgetting multiple SCEVs, rather than doing this one by one, we can instead use mass updates. We plan to make them more efficient than they are now, potentially improving compile time. Differential Revision: https://reviews.llvm.org/D111602 Reviewed By: reames
-
Max Kazantsev authored
This patch changes signature of forgetMemoizedResults to be able to work with multiple SCEVs. Usage will come in follow-ups. We also plan to optimize it in the future to work faster than individual invalidation updates. Should not change behavior in any sense. Split-off from D111602. Differential Revision: https://reviews.llvm.org/D112293 Reviewed By: reames
-
Shivam Gupta authored
This is only for consistency with test cases. Differential Revision: https://reviews.llvm.org/D112364
-
Nicolas Vasilache authored
This removes duplication and makes nesting more clear. It also reduces the amount of changes necessary for exposing future options. Differential revision: https://reviews.llvm.org/D112344
-
Max Kazantsev authored
Follow-up from D112295, suggested by Nikita: we can avoid tracking users of SCEVConstants because dropping their cached info is unlikely to give any new prospects for fact inference, and it should not introduce any correctness problems.
-
Max Kazantsev authored
This patch introduces API that keeps track of SCEVs users of another SCEVs, required to handle invalidations of users along with operands that comes in follow-up patches. Differential Revision: https://reviews.llvm.org/D112295 Reviewed By: reames
-
Mehdi Amini authored
This allows to clear an OpPassManager and populated it again with a new pipeline, while preserving all the other options (including instrumentations). Differential Revision: https://reviews.llvm.org/D112393
-
Chen Zheng authored
Add a new preparation pattern in PPCLoopInstFormPrep pass to reduce register pressure. Reviewed By: jsji Differential Revision: https://reviews.llvm.org/D108750
-
Jacques Pienaar authored
Some tools assume all regions have names, provide one to avoid breakage.
-
Jinsong Ji authored
Address comments in D111078. Reviewed By: hubert.reinterpretcast, lkail Differential Revision: https://reviews.llvm.org/D112272
-
Vitaly Buka authored
This reverts a part of commit 8cd51a69 and 5bf24f05 to fix Windows.
-
Craig Topper authored
-
Vitaly Buka authored
Using divisions by non power of two makes a difference on x86_64 and aarch64 benchmarks.
-
Vitaly Buka authored
-
Vitaly Buka authored
-
Jacques Pienaar authored
Following https://llvm.discourse.group/t/psa-ods-generated-accessors-will-change-to-have-a-get-prefix-update-you-apis/4476, this follows flipping these dialects to _Both prefixed form. This changes the accessors to have a prefix. This was possibly mostly without breaking breaking changes if the existing convenience methods were used. (https://github.com/jpienaar/llvm-project/blob/main/clang-tools-extra/clang-tidy/misc/AddGetterCheck.cpp was used to migrate the callers post flipping, using the output from Operator.cpp) Differential Revision: https://reviews.llvm.org/D112383
-
Fangrui Song authored
GNU ld doesn't support `--no-pic-executable`. `-p` has been removed from likely the only use case (Linux kernel) for over 2.5 years: https://git.kernel.org/linus/091bb549f7722723b284f63ac665e2aedcf9dec9 `--no-add-needed` was the pre-binutils-2.23 spelling for `--no-copy-dt-needed-entries`. The legacy alias is irrelevant in 2021.
-
Jacques Pienaar authored
Split out renaming from D112383 into standalone change.
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Matthias Braun authored
-
Matthias Braun authored
This extends `optimizeCompareInstr` to continue the backwards search when it reached the beginning of a basic block. If there is a single predecessor block then we can just continue the search in that block and mark the EFLAGS register as live-in. Differential Revision: https://reviews.llvm.org/D110862
-
Matthias Braun authored
This changes the first part of `optimizeCompareInstr` being split into a loop with a forward scan for cases that re-use zero flags from a producer in case of compare with zero and a backward scan for finding an instruction equivalent to a compare. The code now uses a single backward scan searching for the next instructions that reads or writes EFLAGS. Also: - Add comments giving examples for the 3 cases handled. - Check `MI` which contains the result of the zero-compare cases, instead of re-checking `IsCmpZero`. - Tweak coding style in some loops. - Add new MIR based tests that test the optimization in isolation. This also removes a check for flag readers in situations like this: ``` = SUB32rr %0, %1, implicit-def $eflags ... we no longer stop when there are $eflag users here CMP32rr %0, %1 ; will be removed ... ``` Differential Revision: https://reviews.llvm.org/D110857
-
Philip Reames authored
The LangRef clearly states that branching on a undef or poison value is immediate undefined behavior, but historically, we have not been consistent about implementing that interpretation in the optimizer. Historically, we used (in some cases) a more relaxed model which essentially looked for provable UB along both paths which was control dependent on the condition. However, we've never been 100% consistent here. For instance SCEV uses the strong model for increments which form AddRecs (and only addrecs). At the moment, the last big blocker for finally making this switch is enabling the fix landed in D106041. Loop unswitching (in it's classic form) is incorrect as it creates many "branch on poisons" when unswitching conditions originally unreachable within the loop. This change adds a flag to value tracking which allows to easily test the optimization potential of treating branch on poison as immediate UB. It's intended to help ease work on getting us finally through this transition and avoid multiple independent rediscovers of the same issues. Differential Revision: https://reviews.llvm.org/D112026
-
Philip Reames authored
Fixes a crash observed by oss-fuzz in 39934. Issue at hand is that code expects a pattern match on m_Mul to imply the operand is a mul instruction, however mul constexprs are also valid here.
-
Vitaly Buka authored
And share storage with size. Depends on D111615. Differential Revision: https://reviews.llvm.org/D111616
-