SuccessChanges

Summary

  1. [X86] Use TargetLowering::getRegClassFor to simplify some code in tryVPTESTM. NFCI (details)
  2. [SCEV] don't query getSCEV() for incomplete phis (details)
  3. [X86] Refactor the broadcast and load folding in tryVPTESTM to reduce some code. (details)
  4. [clang-tidy] readability-identifier-naming checks configs for included files (details)
  5. [MachineVerifier] Refactor calcRegsPassed. NFC (details)
  6. [clang-tidy][NFC] Small refactor (details)
  7. [X86][AVX] Extend v2f64 BROADCAST(LOAD) -> BROADCAST_LOAD to v2i64/v4f32/v4i32 (details)
  8. [InstSimplify] add abs test with assume; NFC (details)
  9. [InstSimplify] simplify abs if operand is known non-negative (details)
Commit 1bd7046e4ce0102adef6096a12a289d7f94b8c73 by craig.topper
[X86] Use TargetLowering::getRegClassFor to simplify some code in tryVPTESTM. NFCI
The file was modifiedllvm/lib/Target/X86/X86ISelDAGToDAG.cpp
Commit 8c5edf50234f52e0de37df3e4e7cec92bdb70e12 by czhengsz
[SCEV] don't query getSCEV() for incomplete phis

querying getSCEV() for incomplete phis leads to wrong cache value in `ExprToIVMap`,
because incomplete phis may be simplified to same value before get SCEV expression.

Reviewed By: lebedev.ri, mkazantsev

Differential Revision: https://reviews.llvm.org/D77560
The file was modifiedllvm/include/llvm/IR/Instructions.h
The file was addedllvm/test/Transforms/LoopStrengthReduce/Power/lit.local.cfg
The file was modifiedllvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
The file was addedllvm/test/Transforms/LoopStrengthReduce/Power/incomplete-phi.ll
Commit 75f134eec1ca30a4080e38d6d364ed932c0322ab by craig.topper
[X86] Refactor the broadcast and load folding in tryVPTESTM to reduce some code.

Now we try to load and broadcast together for operand 1. Followed
by load and broadcast for operand 1. Previously we tried load
operand 1, load operand 1, broadcast operand 0, broadcast operand 1.

Now we have a single helper that tries load and broadcast for
one operand that we can just call twice.
The file was modifiedllvm/lib/Target/X86/X86ISelDAGToDAG.cpp
Commit 4888c9ce97d8c20d988212b10f1045e3c4022b8e by n.james93
[clang-tidy] readability-identifier-naming checks configs for included files

When checking for the style of a decl that isn't in the main file, the check will now search for the configuration that the included files uses to gather the style for its decls.

This can be useful to silence warnings in header files that follow a different naming convention without using header-filter to silence all warnings(even from other checks) in the header file.

Reviewed By: aaron.ballman, gribozavr2

Differential Revision: https://reviews.llvm.org/D84814
The file was modifiedclang-tools-extra/docs/clang-tidy/checks/readability-identifier-naming.rst
The file was addedclang-tools-extra/test/clang-tidy/checkers/Inputs/readability-identifier-naming/global-style-disabled/.clang-tidy
The file was addedclang-tools-extra/test/clang-tidy/checkers/Inputs/readability-identifier-naming/global-style2/.clang-tidy
The file was addedclang-tools-extra/test/clang-tidy/checkers/Inputs/readability-identifier-naming/global-style2/header.h
The file was modifiedclang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.h
The file was addedclang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming-multiple-styles.cpp
The file was addedclang-tools-extra/test/clang-tidy/checkers/Inputs/readability-identifier-naming/global-style-disabled/header.h
The file was addedclang-tools-extra/test/clang-tidy/checkers/Inputs/readability-identifier-naming/global-style1/.clang-tidy
The file was addedclang-tools-extra/test/clang-tidy/checkers/Inputs/readability-identifier-naming/global-style1/header.h
The file was modifiedclang-tools-extra/docs/ReleaseNotes.rst
Commit e73f5d86f179644b8d66d4141d8d359cd6f0435b by eleviant
[MachineVerifier] Refactor calcRegsPassed. NFC

Patch improves performance of verify-machineinstrs pass up to 10x.
Differential revision: https://reviews.llvm.org/D84105
The file was modifiedllvm/lib/CodeGen/MachineVerifier.cpp
Commit 9f21947a331203ee2579db87f1d1ec22a949e20a by n.james93
[clang-tidy][NFC] Small refactor
The file was modifiedclang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
Commit 1b1901536a7db8a074e794f004f9d94b941f7068 by llvm-dev
[X86][AVX] Extend v2f64 BROADCAST(LOAD) -> BROADCAST_LOAD to v2i64/v4f32/v4i32

Minor precursor fix for D66004, but helps the SSE41 tests as well as they run with -disable-peephole
The file was modifiedllvm/test/CodeGen/X86/sse41.ll
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
Commit 1aa52d67d1c1a8eb174d4a85391a17c5f0731116 by spatel
[InstSimplify] add abs test with assume; NFC
The file was modifiedllvm/test/Transforms/InstSimplify/call.ll
Commit 04b99a4d18cf13c13f1d76c5698696bcaef4e4b6 by spatel
[InstSimplify] simplify abs if operand is known non-negative

abs() should be rare enough that using value tracking is not going
to be a compile-time cost burden, so use it to reduce a variety of
potential patterns. We do this in DAGCombiner too.

Differential Revision: https://reviews.llvm.org/D85043
The file was modifiedllvm/test/Transforms/InstSimplify/call.ll
The file was modifiedllvm/lib/Analysis/InstructionSimplify.cpp