LLVM/project 9139421llvm/test/Transforms/PreISelIntrinsicLowering cond-loop.ll

feedback

Created using spr 1.3.7
DeltaFile
+1-5llvm/test/Transforms/PreISelIntrinsicLowering/cond-loop.ll
+1-51 files

LLVM/project 4ec1feaclang/test/OpenMP task_codegen.cpp threadprivate_codegen.cpp

Reapply "[Clang] Mark this pointer in destructors dead_on_return (#166276)"

This reverts commit 047db150c66e245e9df7db178b893ce6b29820f5.

The original version of the commit caused assertion failures in DSE.
Those were fixed in ec059d81aafedb253a02d6f490ad9b9747611038, so trying
to reland this again.
DeltaFile
+3,458-2,041clang/test/OpenMP/task_codegen.cpp
+2,140-2,140clang/test/OpenMP/threadprivate_codegen.cpp
+514-514clang/test/OpenMP/teams_distribute_parallel_for_simd_num_threads_codegen.cpp
+510-510clang/test/OpenMP/distribute_parallel_for_simd_num_threads_codegen.cpp
+652-316clang/test/OpenMP/for_reduction_codegen.cpp
+455-455clang/test/OpenMP/single_codegen.cpp
+7,729-5,97693 files not shown
+15,658-13,77499 files

LLVM/project 5d8731ellvm/include/llvm/IR ProfDataUtils.h, llvm/lib/CodeGen PreISelIntrinsicLowering.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+17-5llvm/test/Transforms/PreISelIntrinsicLowering/cond-loop.ll
+12-0llvm/lib/IR/ProfDataUtils.cpp
+6-1llvm/lib/CodeGen/PreISelIntrinsicLowering.cpp
+5-0llvm/include/llvm/IR/ProfDataUtils.h
+0-1llvm/utils/profcheck-xfail.txt
+40-75 files

LLVM/project 991e3bdllvm/include/llvm/IR ProfDataUtils.h, llvm/lib/IR ProfDataUtils.cpp

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+12-0llvm/lib/IR/ProfDataUtils.cpp
+5-0llvm/include/llvm/IR/ProfDataUtils.h
+17-02 files

LLVM/project 1928c91llvm/include/llvm/IR ProfDataUtils.h, llvm/lib/IR ProfDataUtils.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+12-0llvm/lib/IR/ProfDataUtils.cpp
+5-0llvm/include/llvm/IR/ProfDataUtils.h
+17-02 files

LLVM/project 1e5493bbolt/lib/Passes IdenticalCodeFolding.cpp, bolt/test icf-hot-text-mover.c

[BOLT] Don't fold hot text mover functions in ICF (#180367)

Hot text mover functions are placed in special sections (e.g.,
.never_hugify) to avoid being placed on hot/huge pages. Folding them
with functions from other sections could defeat this purpose.

Add a check in ICF's isIdenticalWith() to prevent folding when either
function is a hot text mover.
DeltaFile
+24-0bolt/test/icf-hot-text-mover.c
+7-0bolt/lib/Passes/IdenticalCodeFolding.cpp
+31-02 files

LLVM/project 74aa875llvm/include/llvm/MC MCSymbol.h MCSection.h

MC: Remove unused overload and delete stale comment. NFC
DeltaFile
+0-1llvm/include/llvm/MC/MCSymbol.h
+0-1llvm/include/llvm/MC/MCSection.h
+0-22 files

LLVM/project ef972b9llvm/lib/Target/AMDGPU SIInstrInfo.cpp, llvm/test/CodeGen/AMDGPU branch-relaxation-inst-size-gfx1250.mir

[AMDGPU] Fix instruction size for 64-bit literal constant operands

PR #156602 changed the condition for using 64-bit literal encoding, but it
didn't update the instruction size calculation. This caused a size mismatch
between the `MachineInstr` and the `MCInst`.
DeltaFile
+10-2llvm/test/CodeGen/AMDGPU/branch-relaxation-inst-size-gfx1250.mir
+8-1llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+18-32 files

LLVM/project ac6df5allvm/test/CodeGen/AMDGPU branch-relaxation-inst-size-gfx1250.mir

[NFC][AMDGPU] Add a test to show the impact of wrong `s_mov_b64` instruction size
DeltaFile
+66-0llvm/test/CodeGen/AMDGPU/branch-relaxation-inst-size-gfx1250.mir
+66-01 files

LLVM/project 10a0f40llvm/test/Transforms/SLPVectorizer/X86 shl-to-add-transformation5.ll

[SLP][NFC]Add another shl-to-add modeling case
DeltaFile
+49-0llvm/test/Transforms/SLPVectorizer/X86/shl-to-add-transformation5.ll
+49-01 files

LLVM/project 3aac5e0llvm/lib/Target/PowerPC/MCTargetDesc PPCXCOFFStreamer.cpp PPCELFStreamer.cpp

[PowerPC] Use MCAssembler::getEmitter instead of getEmitterPtr. NFC

PPCELFStreamer and PPCXCOFFStreamer are MCObjectStreamer subclasses
where the emitter is guaranteed non-null. Use getEmitter() instead of
getEmitterPtr(). getEmitterPtr is reserved for MCAsmStreamer users.
DeltaFile
+2-3llvm/lib/Target/PowerPC/MCTargetDesc/PPCXCOFFStreamer.cpp
+2-3llvm/lib/Target/PowerPC/MCTargetDesc/PPCELFStreamer.cpp
+4-62 files

LLVM/project 62e93fellvm/include/llvm/MC MCDwarf.h MCStreamer.h, llvm/lib/MC MCObjectStreamer.cpp MCStreamer.cpp

MC: Move generateCompactUnwindEncodings to MCObjectStreamer. NFC (#180381)

... removing the need to pass MCAsmBackend as a parameter.

This allows MCStreamer.cpp to not include MCAsmBackend.h.
DeltaFile
+9-4llvm/lib/MC/MCObjectStreamer.cpp
+3-5llvm/include/llvm/MC/MCDwarf.h
+0-7llvm/lib/MC/MCStreamer.cpp
+2-3llvm/include/llvm/MC/MCStreamer.h
+2-3llvm/lib/MC/MCDwarf.cpp
+1-0llvm/include/llvm/MC/MCObjectStreamer.h
+17-226 files

LLVM/project 743538cclang-tools-extra/clang-tidy/readability SuspiciousCallArgumentCheck.cpp, clang-tools-extra/docs ReleaseNotes.rst

[clang-tidy] Fix crash in readability-suspicious-call-argument on invalid option (#180351)

Closes #180346
DeltaFile
+7-0clang-tools-extra/test/clang-tidy/checkers/readability/suspicious-call-argument-option.cpp
+5-1clang-tools-extra/docs/ReleaseNotes.rst
+5-1clang-tools-extra/clang-tidy/readability/SuspiciousCallArgumentCheck.cpp
+1-1clang-tools-extra/test/clang-tidy/checkers/readability/suspicious-call-argument.cpp
+18-34 files

LLVM/project 5dbeb29clang/bindings/python/clang cindex.py, clang/bindings/python/tests/cindex test_location.py test_source_range.py

[libclang/python] Type-annotate SourceLocation and SourceRange (#180193)

This adds type annotations to the `SourceLocation` and `SourceRange`
classes, enough to pass a strict typecheck. This resolves 29 strict
typing errors as the next step towards
https://github.com/llvm/llvm-project/issues/76664
DeltaFile
+30-28clang/bindings/python/clang/cindex.py
+4-0clang/docs/ReleaseNotes.rst
+1-1clang/bindings/python/tests/cindex/test_location.py
+1-1clang/bindings/python/tests/cindex/test_source_range.py
+36-304 files

LLVM/project ac57c4apolly/lib/CodeGen IslNodeBuilder.cpp, polly/lib/External/isl isl_ast_codegen.c GIT_HEAD_ID

[Polly] Update isl to isl-0.27-78-gfc484e00 (#180377)

Update isl to include
https://repo.or.cz/isl.git/commit/fc484e004200964f8f18249de1f510393ec924a9
which fixes #180000.

The isl update also fixes #34710 which had the same cause but with an
empty access domain (#180000 has an empty statement domain). Thus we
also revert 163cacb46960be4dd0d8562737bbf0ea97cb14ad which now only adds
unnecessary overhead.

A regression test has been added to isl which is why we do not add a
test in Polly.

Fixes: #180000

Thanks @skimo-openhub for the fix and @thapgua for the bugreport.
DeltaFile
+0-86polly/test/CodeGen/empty_domain_in_context.ll
+14-3polly/lib/External/isl/isl_ast_codegen.c
+12-0polly/lib/External/isl/test_inputs/codegen/polly2.st
+2-0polly/lib/External/isl/test_inputs/codegen/polly2.c
+1-1polly/lib/External/isl/GIT_HEAD_ID
+0-2polly/lib/CodeGen/IslNodeBuilder.cpp
+29-926 files

LLVM/project a177ce4clang/include/clang/Analysis/Analyses/LifetimeSafety Loans.h, clang/lib/Analysis/LifetimeSafety FactsGenerator.cpp Checker.cpp

Field and interior paths
DeltaFile
+158-100clang/include/clang/Analysis/Analyses/LifetimeSafety/Loans.h
+50-41clang/test/Sema/warn-lifetime-safety-invalidations.cpp
+46-42clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+30-47clang/lib/Analysis/LifetimeSafety/Checker.cpp
+58-9clang/lib/Analysis/LifetimeSafety/Loans.cpp
+16-2clang/lib/Analysis/LifetimeSafety/LoanPropagation.cpp
+358-2415 files not shown
+379-26311 files

LLVM/project 88dff28llvm/lib/Target/AMDGPU SIInsertWaitcnts.cpp

[AMDGPU][SIInsertWaitcnts][NFC] Make a few WaitcntBracket member functions private (#180018)

The user of the WaitcntBrackets class shouldn't need to know about how
the scoreboard has been implemented internally. So I think it is best to
provide a higher level API that hides things like scoreUB, scoreLB and
score ranges.

This patch makes getScoreUB(), getScoreLB() and getScoreRange() private
and introduces new functions that don't expose the internal
implementation:
- getOutstanding(T)
- hasPendingVMEM(VMEMID, T)
- empty(T)

I also noticed that getSGPRScore() and getVMemScore() are not used
externally so these are now private.
DeltaFile
+24-19llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+24-191 files

LLVM/project bf86aeaclang/include/clang/Analysis/Analyses/LifetimeSafety Loans.h, clang/lib/Analysis/LifetimeSafety FactsGenerator.cpp Checker.cpp

Field and interior paths
DeltaFile
+158-100clang/include/clang/Analysis/Analyses/LifetimeSafety/Loans.h
+46-42clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+45-35clang/test/Sema/warn-lifetime-safety-invalidations.cpp
+30-47clang/lib/Analysis/LifetimeSafety/Checker.cpp
+58-9clang/lib/Analysis/LifetimeSafety/Loans.cpp
+16-2clang/lib/Analysis/LifetimeSafety/LoanPropagation.cpp
+353-2354 files not shown
+371-25010 files

LLVM/project f73a0b9clang/include/clang/Driver Driver.h, clang/lib/Driver Driver.cpp

[clang] Remove unused parameter from Driver::DiagnoseInputExistence (NFC) (#177876)

DeltaFile
+5-5clang/lib/Driver/Driver.cpp
+1-2clang/include/clang/Driver/Driver.h
+6-72 files

LLVM/project 0c4f809llvm/lib/Transforms/Vectorize VPlanRecipes.cpp LoopVectorize.cpp

[VPlan] Compute predicated load/store costs in VPlan. (NFC) (#179129)

Update VPReplicateReicpe::computeCost to compute predicated load/store
costs directly, unless the pointer is uniform. In that case, the legacy
cost model uses a different logic, which will be migrated separately.

PR: https://github.com/llvm/llvm-project/pull/179129
DeltaFile
+26-9llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+8-4llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+5-0llvm/lib/Transforms/Vectorize/VPlanHelpers.h
+39-133 files

LLVM/project 42e4045clang/docs ClangFormatStyleOptions.rst, clang/include/clang/Format Format.h

[clang-format][doc] Add GNU style link in KeepFormFeed option (#176654)

It was not clear from the description what this option does.
Added small example to demostrate its behavior.
DeltaFile
+2-1clang/docs/ClangFormatStyleOptions.rst
+2-1clang/include/clang/Format/Format.h
+4-22 files

LLVM/project ec059d8llvm/lib/Transforms/Scalar DeadStoreElimination.cpp, llvm/test/Transforms/DeadStoreElimination simple.ll

[DSE] Handle variable offsets with sized dead_on_return (#180364)

With a sized dead_on_return, we need to not eliminate stores if there
are to a pointer with a variable offset from the underlying object
marked dead_on_return. This manifested as an assertion failure as
BaseValue/V ended up not being equal. It's possible we could do a range
analysis to try and prove the variable offset stays within bounds, but
this case seems to come up relatively rarely (only reproducible with a
UBSan build of LLVM) and is probably not worth the compile time.

Fixes #180361.
DeltaFile
+11-0llvm/test/Transforms/DeadStoreElimination/simple.ll
+5-1llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
+16-12 files

LLVM/project 39622a7llvm/utils profcheck-xfail.txt

[ProfCheck] Add PreISelIntrinsicLoweringTest to XFail

Introduced in 191af6c254a83c9eb72df92a5db534d8fd4f0701. Should not be a
complicated fix, but move to the xfail list for now so the bot gets back
to green while we work on fixing.
DeltaFile
+1-0llvm/utils/profcheck-xfail.txt
+1-01 files

LLVM/project a947599llvm/include/llvm/CodeGen/GlobalISel MachineIRBuilder.h LegalizerHelper.h, llvm/lib/CodeGen/GlobalISel LegalizerHelper.cpp

[AMDGPU][GlobalISel] Add lowering for G_FMODF (#180152)

Add generic expansion for G_FMODF matching the SelectionDAG
implementation.

Enable G_FMODF lowering for AMDGPU with tests.

Related: #179434
DeltaFile
+425-191llvm/test/CodeGen/AMDGPU/llvm.modf.ll
+31-0llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
+10-0llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
+4-3llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
+1-0llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
+471-1945 files

LLVM/project 9dd5542clang/include/clang/AST HLSLResource.h, clang/lib/CodeGen CGHLSLRuntime.cpp

[clang][NFC] Replace includes of "Attrs.inc" with "Attr.h" (#180356)

"clang/AST/Attrs.inc" is not a self-contained header and is not intended
to be included directly. Instead, "clang/AST/Attr.h" is the header that
users need.
DeltaFile
+1-1clang/lib/CodeGen/CGHLSLRuntime.cpp
+1-1clang/lib/Sema/SemaExpr.cpp
+1-1clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
+0-1clang/include/clang/AST/HLSLResource.h
+0-1clang/lib/Sema/SemaHLSL.cpp
+0-1clang/lib/Sema/SemaRISCV.cpp
+3-66 files

LLVM/project be4dbf5lld/ELF OutputSections.cpp

[lld][ELF] Remove redundant size check in nopInstrFill

We checked twice of size is equal to zero. This is not necessary and
makes the code a little bit less readable.

Reviewers: MaskRay, tmsri

Pull Request: https://github.com/llvm/llvm-project/pull/180304
DeltaFile
+0-2lld/ELF/OutputSections.cpp
+0-21 files

LLVM/project f72da50llvm/test/tools/obj2yaml/ELF bb-addr-map-pgo-analysis-map.yaml, llvm/tools/obj2yaml elf2yaml.cpp

[obj2yaml] Support SHT_LLVM_BB_ADDR_MAP version 5

e9368a056dff94815b3c43a0da78e7c1e5b3d4f4 missed updating the obj2yaml
version check. This was causing obj2yaml to error on object files
generated by the most recent clang.

Reviewers: rlavaee, jh7370

Pull Request: https://github.com/llvm/llvm-project/pull/180303
DeltaFile
+4-4llvm/test/tools/obj2yaml/ELF/bb-addr-map-pgo-analysis-map.yaml
+1-1llvm/tools/obj2yaml/elf2yaml.cpp
+5-52 files

LLVM/project 8b5e95bllvm/lib/Transforms/Scalar InferAddressSpaces.cpp, llvm/test/Transforms/InferAddressSpaces/NVPTX nullptr.ll

[InferAddressSpaces] Initialize op(generic const, generic const, ...) -> generic (#172143)

Fixes #171890
If the pointer operands of an instruction are all constants with generic
AS, we always infer the AS of the instruction as uninitialized finally.
And the rewrite process will skip cloning the instruction, producing
invalid IR.
This patch fixes it by inferring the AS of this kind of instruction as
flat. Maybe we can fold the operator with all constants to get better
performance, but I think this case is rare in the real world.
DeltaFile
+22-0llvm/test/Transforms/InferAddressSpaces/NVPTX/nullptr.ll
+8-1llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
+30-12 files

LLVM/project 8bced61llvm/include/llvm/DebugInfo/PDB/Native FormatUtil.h InputFile.h, llvm/lib/Support MathExtras.cpp

[NFC][ADT] add NumDigitsBase10 to MathExtra and update some current users (#165479)

DeltaFile
+0-43llvm/include/llvm/DebugInfo/PDB/Native/FormatUtil.h
+35-0llvm/lib/Support/MathExtras.cpp
+11-10llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp
+15-0llvm/unittests/Support/MathExtrasTest.cpp
+5-4llvm/include/llvm/DebugInfo/PDB/Native/InputFile.h
+3-3llvm/tools/llvm-pdbutil/MinimalTypeDumper.cpp
+69-605 files not shown
+76-6411 files

LLVM/project f1d8d03clang/lib/Sema SemaExpr.cpp, clang/test/SemaHIP hip-builtin-lvalue-to-rvalue.hip

[HIP][Sema] Fix incorrect CK_NoOp for lvalue-to-rvalue conversion in … (#180314)

…builtin args

The HIP implicit address space cast for builtin pointer arguments used
CK_NoOp to convert lvalue args to rvalues.

This caused an assertion failure in LifetimeSafety analysis:
  Assertion `Dst->getLength() == Src->getLength()` failed
in FactsGenerator::flow() in some cases.

Use DefaultLvalueConversion which correctly emits CK_LValueToRValue.
DeltaFile
+19-0clang/test/SemaHIP/hip-builtin-lvalue-to-rvalue.hip
+4-3clang/lib/Sema/SemaExpr.cpp
+23-32 files