SuccessChanges

Summary

  1. [PowerPC] [CodeGen] Use MachineBranchProbabilityInfo in (details)
  2. [AArch64][SVE] Move TableGen class definitions for gather loads (NFC) (details)
  3. [clangd] Deduplicate refs from index for cross-file rename. (details)
  4. [MCRegInfo] Add sub_and_superregs_inclusive iterator range. (details)
  5. [NFC][PowerPC] Remove the dead conditions in the if(cond) (details)
  6. [ARM][TypePromotion] Enable by default (details)
  7. [NFC] Correct the example in the comments of JSON.h to avoid mislead (details)
Commit 1408e7e17525287c596a8f575957aecb684fa75d by shkzhang
[PowerPC] [CodeGen] Use MachineBranchProbabilityInfo in
EarlyIfPredicator to avoid the potential bug
Summary: In the function `EarlyIfPredicator::shouldConvertIf()`, we call
`TII->isProfitableToIfCvt()` with `BranchProbability::getUnknown()`, it
may cause the potential assertion error for those hook which use
`BranchProbability` in `isProfitableToIfCvt()`, for example `SystemZ`.
`SystemZ` use `Probability < BranchProbability(1, 8))` in the function
`SystemZInstrInfo::isProfitableToIfCvt()`, if we call this function with
`BranchProbability::getUnknown()`, it will cause assertion error.
This patch is to fix the potential bug.
Reviewed By: ThomasRaoux
Differential Revision: https://reviews.llvm.org/D71273
The file was modifiedllvm/lib/CodeGen/EarlyIfConversion.cpp
Commit 1eecbda0872832da936d37c4288eaaa2645a7415 by andrzej.warzynski
[AArch64][SVE] Move TableGen class definitions for gather loads (NFC)
Move 2 intrinsic class definitions so that they're all clustered in one
place.
Patch submitted to test commit access.
The file was modifiedllvm/include/llvm/IR/IntrinsicsAArch64.td
Commit f0004aad5565d4b76d41a03549c5a80efc4212c7 by hokein.wu
[clangd] Deduplicate refs from index for cross-file rename.
Summary: If the index returns duplicated refs, it will trigger the
assertion in BuildRenameEdit (we expect the processing position is
always larger the the previous one, but it is not true if we have
duplication), and also breaks our heuristics.
This patch make the code robost enough to handle duplications, also save
some cost of redundnat llvm::sort.
Though clangd's index doesn't return duplications, our internal index
kythe will.
Reviewers: ilya-biryukov
Subscribers: MaskRay, jkorous, mgrang, arphaman, kadircet, usaxena95,
cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D71300
The file was modifiedclang-tools-extra/clangd/refactor/Rename.cpp
The file was modifiedclang-tools-extra/clangd/unittests/RenameTests.cpp
The file was modifiedclang-tools-extra/clangd/refactor/Rename.h
Commit b48b4ed1a0bd81531d3aeb4e719b273751548a34 by flo
[MCRegInfo] Add sub_and_superregs_inclusive iterator range.
Reviewers: evandro, qcolombet, paquette, MatzeB, arsenm
Reviewed By: paquette
Differential Revision: https://reviews.llvm.org/D70566
The file was modifiedllvm/include/llvm/MC/MCRegisterInfo.h
Commit eba7cbd3d06b3a84a72dcb6601a667a095c32664 by qshanz
[NFC][PowerPC] Remove the dead conditions in the if(cond)
The file was modifiedllvm/lib/Target/PowerPC/PPCISelLowering.cpp
Commit ee7579409b7d940c4e1314d126e900db30c4edff by sam.parker
[ARM][TypePromotion] Enable by default
Enable the TypePromotion pass my default (again).
This patch was originally committed in 393dacacf7e7. This patch was
reverted in a38396939c54.
Differential Revision: https://reviews.llvm.org/D70998
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/signed-icmps.ll
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/calls.ll
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/icmps.ll
The file was modifiedllvm/lib/CodeGen/TypePromotion.cpp
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/clear-structures.ll
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/casts.ll
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/signed.ll
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/phis-ret.ll
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/wrapping.ll
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/pointers.ll
The file was modifiedllvm/test/Transforms/TypePromotion/ARM/switch.ll
Commit 46822083ef9f03ceb26db80410e47f23aa9bd7ae by qshanz
[NFC] Correct the example in the comments of JSON.h to avoid mislead
user
The file was modifiedllvm/include/llvm/Support/JSON.h