SuccessChanges

Summary

  1. [NFC][InstCombine] Negator: add tests for negation of left-shift by constant (details)
  2. [NFC][InstCombine] Fix value names (s/%tmp/%i/) and autogenerate a few tests being affected by negator change (details)
  3. [InstCombine] Negator: -(X << C)  -->  X * (-1 << C) (details)
  4. Revert "[InstCombine] Negator: -(X << C)  -->  X * (-1 << C)" (details)
  5. [llvm] Expose type and element count-related APIs on TensorSpec (details)
  6. [StackSafety,NFC] Add combined index test (details)
  7. [lldb/testsuite] Skip 'frame diagnose' tests based on architecture (details)
  8. [X86] Optimize getImpliedDisabledFeatures & getImpliedEnabledFeatures after D83273 (details)
  9. PR46997: don't run clang-format on clang's testcases. (details)
  10. [StackSafety,NFC] Add combined index test (details)
  11. [llvm-cov] reset executation count to 0 after wrapped segment (details)
Commit 3f3303324eb2dc8a7e6d0ff867159c08479609de by lebedev.ri
[NFC][InstCombine] Negator: add tests for negation of left-shift by constant
The file was modifiedllvm/test/Transforms/InstCombine/sub-of-negatible.ll
Commit 8fd57b06a4fd04ada4f1d1c4124adc9998be1e5f by lebedev.ri
[NFC][InstCombine] Fix value names (s/%tmp/%i/) and autogenerate a few tests being affected by negator change
The file was modifiedllvm/test/Transforms/InstCombine/icmp.ll
The file was modifiedllvm/test/Transforms/InstCombine/sub-gep.ll
The file was modifiedllvm/test/Transforms/InstCombine/sub.ll
Commit 8aeb2fe13a4100b4c2e78d6ef75119304100cb1f by lebedev.ri
[InstCombine] Negator: -(X << C)  -->  X * (-1 << C)

This shows some regressions in tests, but they are all around GEP's,
so i'm not really sure how important those are.

https://rise4fun.com/Alive/1Gn
The file was modifiedllvm/test/Transforms/InstCombine/sub-gep.ll
The file was modifiedllvm/test/Transforms/InstCombine/sub.ll
The file was modifiedllvm/test/Transforms/InstCombine/sub-of-negatible.ll
The file was modifiedllvm/test/Transforms/InstCombine/icmp.ll
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineNegator.cpp
Commit ac70b37a00dc02bd8923e0a4602d26be4581c570 by lebedev.ri
Revert "[InstCombine] Negator: -(X << C)  -->  X * (-1 << C)"

Breaks codegen tests, will recommit later.

This reverts commit 8aeb2fe13a4100b4c2e78d6ef75119304100cb1f.
The file was modifiedllvm/test/Transforms/InstCombine/sub-gep.ll
The file was modifiedllvm/test/Transforms/InstCombine/sub-of-negatible.ll
The file was modifiedllvm/test/Transforms/InstCombine/icmp.ll
The file was modifiedllvm/test/Transforms/InstCombine/sub.ll
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineNegator.cpp
Commit 90b9c49ca6477a85e69018967c0a4d4d38ee6e72 by mtrofin
[llvm] Expose type and element count-related APIs on TensorSpec

Added a mechanism to check the element type, get the total element
count, and the size of an element.

Differential Revision: https://reviews.llvm.org/D85250
The file was modifiedllvm/include/llvm/Analysis/Utils/TFUtils.h
The file was modifiedllvm/lib/Analysis/TFUtils.cpp
The file was modifiedllvm/unittests/Analysis/TFUtilsTest.cpp
Commit 03a822f7a676089fca99aac02a057eab8474acc2 by Vitaly Buka
[StackSafety,NFC] Add combined index test
The file was modifiedllvm/test/Bitcode/thinlto-function-summary-paramaccess.ll
Commit 4c9ed3ed3d2fc7622acf5fc0d80ad20b44cf376a by Fred Riss
[lldb/testsuite] Skip 'frame diagnose' tests based on architecture

AFAICS, the feature only works on x86, skipping the tests has nothing to
do with the target being iOS or remote.
The file was modifiedlldb/test/API/commands/frame/diagnose/dereference-this/TestDiagnoseDereferenceThis.py
The file was modifiedlldb/test/API/commands/frame/diagnose/bad-reference/TestBadReference.py
The file was modifiedlldb/test/API/commands/frame/diagnose/inheritance/TestDiagnoseInheritance.py
The file was modifiedlldb/test/API/commands/frame/diagnose/dereference-argument/TestDiagnoseDereferenceArgument.py
The file was modifiedlldb/test/API/commands/frame/diagnose/array/TestArray.py
The file was modifiedlldb/test/API/commands/frame/diagnose/dereference-function-return/TestDiagnoseDereferenceFunctionReturn.py
The file was modifiedlldb/test/API/commands/frame/diagnose/local-variable/TestLocalVariable.py
The file was modifiedlldb/test/API/commands/frame/diagnose/complicated-expression/TestComplicatedExpression.py
The file was modifiedlldb/test/API/commands/frame/diagnose/virtual-method-call/TestDiagnoseDereferenceVirtualMethodCall.py
Commit 0c7af8c83bd1acb0ca78f35ddde29b6fde4363a0 by maskray
[X86] Optimize getImpliedDisabledFeatures & getImpliedEnabledFeatures after D83273

Previously the time complexity is O(|number of paths from the root to an
implied feature| * CPU_FWATURE_MAX) where CPU_FEATURE_MAX is 92.

The number of paths can be large (theoretically exponential).

For an inline asm statement, there is a code path
`clang::Parser::ParseAsmStatement -> clang::Sema::ActOnGCCAsmStmt -> ASTContext::getFunctionFeatureMap`
leading to potentially many calls of getImpliedEnabledFeatures (41 for my -march=native case).

We should improve the performance a bit in case the number of inline asm
statements is large (Linux kernel builds).

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D85257
The file was modifiedllvm/lib/Support/X86TargetParser.cpp
Commit dd37b5a35b6923970fff1f9252a9f704981035dc by richard
PR46997: don't run clang-format on clang's testcases.

The formatting of the testcases matters and shouldn't be overwritten by
a tool.
The file was modified.arclint
Commit fe74f731e7024ce8b66869777dca6d6ed5a22e47 by Vitaly Buka
[StackSafety,NFC] Add combined index test

Missing file for the previous patch
The file was addedllvm/test/Bitcode/Inputs/thinlto-function-summary-paramaccess.ll
Commit e3df9471750935876bd2bf7da93ccf0eacca8592 by zequanwu
[llvm-cov] reset executation count to 0 after wrapped segment

Fix the bug: https://bugs.llvm.org/show_bug.cgi?id=36979. It also fixes this bug: https://bugs.llvm.org/show_bug.cgi?id=35404, which I think is caused by the same problem.

Differential Revision: https://reviews.llvm.org/D85036
The file was modifiedllvm/test/tools/llvm-cov/ignore-filename-regex.test
The file was modifiedllvm/test/tools/llvm-cov/Inputs/instrprof-comdat.h
The file was modifiedllvm/unittests/ProfileData/CoverageMappingTest.cpp
The file was modifiedllvm/lib/ProfileData/Coverage/CoverageMapping.cpp