- Oct 25, 2021
-
-
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
-
Vitaly Buka authored
This is msan/dfsan data which does not need waste cache of other sanitizers. Depends on D111614. Differential Revision: https://reviews.llvm.org/D111615
-
Fangrui Song authored
-
Kazu Hirata authored
We can erase an item in a set or map without checking its membership first.
-
Kazu Hirata authored
-
- Oct 24, 2021
-
-
Groverkss authored
This patch fixes a bug in implementation `mergeSymbolIds` where symbol identifiers were not unique after merging them. Asserts for checking uniqueness before and after the merge are also added. The asserts checking uniqueness after the merge fail without the fix on existing test cases. Reviewed By: arjunp Differential Revision: https://reviews.llvm.org/D111958
-
Nikita Popov authored
-
Sanjay Patel authored
-
Sanjay Patel authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Sylvestre Ledru authored
It is going to be a LTS release
-
Simon Pilgrim authored
Fix the copy + paste, renaming shift amt from Idx to Amt
-
Nikita Popov authored
Directly fetch the size instead of going through the index type first.
-
Balazs Benics authored
This reverts commit cac8808f. #5 0x00007f28ec629859 abort (/lib/x86_64-linux-gnu/libc.so.6+0x25859) #6 0x00007f28ec629729 (/lib/x86_64-linux-gnu/libc.so.6+0x25729) #7 0x00007f28ec63af36 (/lib/x86_64-linux-gnu/libc.so.6+0x36f36) #8 0x00007f28ecc2cc46 llvm::APInt::compareSigned(llvm::APInt const&) const (libLLVMSupport.so.14git+0xeac46) #9 0x00007f28e7bbf957 (anonymous namespace)::SymbolicRangeInferrer::VisitBinaryOperator(clang::ento::RangeSet, clang::BinaryOperatorKind, clang::ento::RangeSet, clang::QualType) (libclangStaticAnalyzerCore.so.14git+0x1df957) #10 0x00007f28e7bbf2db (anonymous namespace)::SymbolicRangeInferrer::infer(clang::ento::SymExpr const*) (libclangStaticAnalyzerCore.so.14git+0x1df2db) #11 0x00007f28e7bb2b5e (anonymous namespace)::RangeConstraintManager::assumeSymNE(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, llvm::APSInt const&, llvm::APSInt const&) (libclangStaticAnalyzerCore.so.14git+0x1d2b5e) #12 0x00007f28e7bc67af clang::ento::RangedConstraintManager::assumeSymUnsupported(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (libclangStaticAnalyzerCore.so.14git+0x1e67af) #13 0x00007f28e7be3578 clang::ento::SimpleConstraintManager::assumeAux(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (libclangStaticAnalyzerCore.so.14git+0x203578) #14 0x00007f28e7be33d8 clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (libclangStaticAnalyzerCore.so.14git+0x2033d8) #15 0x00007f28e7be32fb clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::DefinedSVal, bool) (libclangStaticAnalyzerCore.so.14git+0x2032fb) #16 0x00007f28e7b15dbc clang::ento::ConstraintManager::assumeDual(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::DefinedSVal) (libclangStaticAnalyzerCore.so.14git+0x135dbc) #17 0x00007f28e7b4780f clang::ento::ExprEngine::evalEagerlyAssumeBinOpBifurcation(clang::ento::ExplodedNodeSet&, clang::ento::ExplodedNodeSet&, clang::Expr const*) (libclangStaticAnalyzerCore.so.14git+0x16780f) This is known to be triggered on curl, tinyxml2, tmux, twin and on xerces. But @bjope also reported similar crashes. So, I'm reverting it to make our internal bots happy again. Differential Revision: https://reviews.llvm.org/D106102
-
- Oct 23, 2021
-
-
Nikita Popov authored
As this API is now internally offset-based, we can accept a starting offset and remove the need to create a temporary bitcast+gep sequence to perform an offset load. The API now mirrors the ConstantFoldLoadFromConst() API.
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Stefan Gränitz authored
The test was removed temporarily in a539a847 to aid switching the RPC API in use in the LLJITWithRemoteDebugging example. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D110649
-