LLVM/project 3818d01llvm/lib/Transforms/InstCombine InstCombineSelect.cpp InstCombineAndOrXor.cpp, llvm/utils profcheck-xfail.txt

InstCombine: Propagate profile metadata in logical op creation and select folding
DeltaFile
+12-0llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+8-2llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
+0-1llvm/utils/profcheck-xfail.txt
+20-33 files

LLVM/project 34e67dbllvm/lib/Transforms/InstCombine InstCombineAddSub.cpp, llvm/test/Transforms/InstCombine zext-bool-add-sub.ll

[InstCombine][profcheck] Fix missing profdata for zext/sext transform and update tests
DeltaFile
+0-49llvm/utils/profcheck-xfail.txt
+8-12llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
+1-1llvm/test/Transforms/InstCombine/zext-bool-add-sub.ll
+9-623 files

LLVM/project 59b3596llvm/lib/Transforms/InstCombine InstCombineAddSub.cpp, llvm/test/Transforms/InstCombine zext-bool-add-sub.ll

[InstCombine][profcheck] Fix missing profdata for zext transform.
DeltaFile
+17-4llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
+9-5llvm/test/Transforms/InstCombine/zext-bool-add-sub.ll
+0-1llvm/utils/profcheck-xfail.txt
+26-103 files

LLVM/project d48f199llvm/lib/Transforms/InstCombine InstCombineSelect.cpp, llvm/utils profcheck-xfail.txt

InstCombine: Propagate profile metadata in select factorization folding
DeltaFile
+12-12llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+0-1llvm/utils/profcheck-xfail.txt
+12-132 files

LLVM/project 9b001d2llvm/lib/Transforms/InstCombine InstCombineSelect.cpp, llvm/utils profcheck-xfail.txt

InstCombine: Propagate profile metadata in nested select folding
DeltaFile
+6-2llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+1-1llvm/utils/profcheck-xfail.txt
+7-32 files

LLVM/project 5c73ba8llvm/lib/Transforms/InstCombine InstCombineShifts.cpp InstCombineAddSub.cpp, llvm/utils profcheck-xfail.txt

InstCombine: Propagate profile metadata in shift-of-select folding
DeltaFile
+8-2llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
+3-0llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
+2-1llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+0-1llvm/utils/profcheck-xfail.txt
+13-44 files

LLVM/project 032a262llvm/lib/Transforms/Utils SimplifyLibCalls.cpp, llvm/utils profcheck-xfail.txt

InstCombine: Comprehensive fix for missing profile metadata in libcall simplifications
DeltaFile
+50-22llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+0-1llvm/utils/profcheck-xfail.txt
+50-232 files

LLVM/project 76e3e6dllvm/lib/Transforms/InstCombine InstCombineSelect.cpp, llvm/utils profcheck-xfail.txt

InstCombine: Propagate profile metadata in symmetric select folding
DeltaFile
+6-3llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+0-1llvm/utils/profcheck-xfail.txt
+6-42 files

LLVM/project 2f8e52cllvm/lib/Transforms/Utils SimplifyLibCalls.cpp, llvm/utils profcheck-xfail.txt

InstCombine: Set unknown profile metadata in memchr-to-select folding
DeltaFile
+10-1llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+0-1llvm/utils/profcheck-xfail.txt
+10-22 files

LLVM/project b8722f8llvm/lib/Transforms/InstCombine InstCombineCalls.cpp InstCombineSelect.cpp, llvm/utils profcheck-xfail.txt

InstCombine: Propagate profile metadata in clamp folds and fix verifier errors
DeltaFile
+18-5llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+5-4llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+0-1llvm/utils/profcheck-xfail.txt
+23-103 files

LLVM/project b483610llvm/lib/Transforms/InstCombine InstCombineShifts.cpp, llvm/utils profcheck-xfail.txt

InstCombine: Set unknown profile metadata in lshr-to-select folding
DeltaFile
+8-1llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
+0-1llvm/utils/profcheck-xfail.txt
+8-22 files

LLVM/project bdfc75allvm/lib/Transforms/InstCombine InstCombineAndOrXor.cpp, llvm/utils profcheck-xfail.txt

InstCombine: Set unknown profile metadata in logic-to-select folding
DeltaFile
+3-0llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
+0-1llvm/utils/profcheck-xfail.txt
+3-12 files

LLVM/project a8b3675llvm/lib/Transforms/InstCombine InstCombineAddSub.cpp, llvm/test/Transforms/InstCombine fneg.ll

InstCombine: Propagate profile metadata in fneg(select) folding
DeltaFile
+8-4llvm/test/Transforms/InstCombine/fneg.ll
+6-0llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
+0-1llvm/utils/profcheck-xfail.txt
+14-53 files

LLVM/project 7065b4dllvm/lib/Transforms/Utils SimplifyLibCalls.cpp, llvm/utils profcheck-xfail.txt

InstCombine: Propagate profile metadata in SimplifyLibCalls for FFS
DeltaFile
+15-1llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+0-1llvm/utils/profcheck-xfail.txt
+15-22 files

LLVM/project e3bd4a0llvm/lib/Transforms/InstCombine InstCombineSelect.cpp InstCombineCalls.cpp, llvm/utils profcheck-xfail.txt

InstCombine: Propagate profile metadata in select(ldexp) and ldexp(select) folding
DeltaFile
+11-2llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+5-0llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+0-1llvm/utils/profcheck-xfail.txt
+16-33 files

LLVM/project ef2e948llvm/lib/Transforms/InstCombine InstCombineCalls.cpp, llvm/utils profcheck-xfail.txt

InstCombine: Propagate profile metadata in ldexp(zext) folding
DeltaFile
+10-0llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+0-1llvm/utils/profcheck-xfail.txt
+10-12 files

LLVM/project 3e46d26llvm/lib/Transforms/InstCombine InstCombineMulDivRem.cpp, llvm/test/Transforms/InstCombine fmul.ll

InstCombine: Propagate profile metadata in mul(select) folding
DeltaFile
+50-8llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
+5-3llvm/test/Transforms/InstCombine/fmul.ll
+0-1llvm/utils/profcheck-xfail.txt
+55-123 files

LLVM/project 88b708ellvm/lib/Transforms/InstCombine InstCombineSelect.cpp, llvm/test/Transforms/InstCombine clamp-to-minmax.ll

InstCombine: Propagate profile metadata in floating point clamp and swap canonicalization
DeltaFile
+17-2llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+11-6llvm/test/Transforms/InstCombine/clamp-to-minmax.ll
+3-1llvm/utils/profcheck-xfail.txt
+31-93 files

LLVM/project 5129389llvm/lib/Transforms/InstCombine InstCombineSelect.cpp InstCombineInternal.h, llvm/test/Transforms/InstCombine canonicalize-clamp-like-pattern-between-negative-and-positive-thresholds.ll

InstCombine: Propagate profile metadata in clamp canonicalization
DeltaFile
+16-6llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+8-4llvm/test/Transforms/InstCombine/canonicalize-clamp-like-pattern-between-negative-and-positive-thresholds.ll
+1-1llvm/lib/Transforms/InstCombine/InstCombineInternal.h
+0-1llvm/utils/profcheck-xfail.txt
+25-124 files

LLVM/project ef40989llvm/lib/Transforms/InstCombine InstCombineCalls.cpp, llvm/test/Transforms/InstCombine fabs.ll

InstCombine: Propagate profile metadata in fabs(select) folding
DeltaFile
+5-3llvm/test/Transforms/InstCombine/fabs.ll
+3-0llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+0-1llvm/utils/profcheck-xfail.txt
+8-43 files

LLVM/project fa21f3bllvm/lib/Transforms/InstCombine InstCombineCasts.cpp, llvm/test/Transforms/InstCombine cast-mul-select.ll

InstCombine: Propagate profile metadata in EvaluateInDifferentType to select
DeltaFile
+181-67llvm/test/Transforms/InstCombine/cast-mul-select.ll
+6-0llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
+0-1llvm/utils/profcheck-xfail.txt
+187-683 files

LLVM/project f9504ballvm/lib/Analysis MemoryBuiltins.cpp, llvm/test/Transforms/InstCombine builtin-dynamic-object-size.ll

InstCombine: Propagate profile metadata in objectsize lowering to select
DeltaFile
+16-0llvm/lib/Analysis/MemoryBuiltins.cpp
+8-3llvm/test/Transforms/InstCombine/builtin-dynamic-object-size.ll
+0-1llvm/utils/profcheck-xfail.txt
+24-43 files

LLVM/project 78cddd8llvm/lib/Transforms/InstCombine InstCombineCalls.cpp, llvm/test/Transforms/InstCombine bitreverse.ll

InstCombine: Propagate profile metadata in bitreverse to select
DeltaFile
+8-3llvm/test/Transforms/InstCombine/bitreverse.ll
+7-2llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+0-1llvm/utils/profcheck-xfail.txt
+15-63 files

LLVM/project 922d157llvm/lib/Transforms/InstCombine InstCombineSelect.cpp, llvm/test/Transforms/InstCombine select-and-or.ll

Fix profile metadata propagation in InstCombine select folding

Propagate profile metadata when folding select instructions with logical AND/OR conditions and when canonicalizing SPF to intrinsics. This fixes profile verification failures in Transforms/InstCombine/select-and-or.ll.
DeltaFile
+110-108llvm/test/Transforms/InstCombine/select-and-or.ll
+16-10llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+0-1llvm/utils/profcheck-xfail.txt
+126-1193 files

LLVM/project cb46a50llvm/lib/Transforms/InstCombine InstCombineAndOrXor.cpp InstCombineInternal.h, llvm/test/Transforms/InstCombine and-or-icmps.ll

Fix profile metadata propagation in InstCombine reassociation.

This change ensures that reassociateBooleanAndOr propagates profile metadata (e.g. branch weights) from the original logical operation to the new one created during reassociation. This fixes a profile verification failure in Transforms/InstCombine/and-or-icmps.ll where a select instruction was missing annotation.
DeltaFile
+18-7llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
+7-3llvm/test/Transforms/InstCombine/and-or-icmps.ll
+2-1llvm/utils/profcheck-xfail.txt
+2-1llvm/lib/Transforms/InstCombine/InstCombineInternal.h
+29-124 files

LLVM/project 2d55992llvm/lib/Transforms/InstCombine InstCombineSelect.cpp, llvm/test/Transforms/InstCombine and2.ll

Fix profcheck failure in Transforms/InstCombine/and2.ll
DeltaFile
+16-9llvm/test/Transforms/InstCombine/and2.ll
+10-4llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+0-1llvm/utils/profcheck-xfail.txt
+26-143 files

LLVM/project 49b05f3llvm/test/Transforms/InstCombine apint-div1.ll apint-div2.ll

Fix profile metadata propagation in InstCombine takeLog2
DeltaFile
+28-13llvm/test/Transforms/InstCombine/apint-div1.ll
+28-13llvm/test/Transforms/InstCombine/apint-div2.ll
+15-4llvm/test/Transforms/InstCombine/2005-04-07-UDivSelectCrash.ll
+12-5llvm/test/Transforms/InstCombine/div-shift.ll
+8-3llvm/test/Transforms/InstCombine/cttz.ll
+8-3llvm/test/Transforms/InstCombine/mul-pow2.ll
+99-413 files not shown
+109-509 files

LLVM/project 5c52e83llvm/lib/Transforms/InstCombine InstCombineSelect.cpp, llvm/test/Transforms/InstCombine and-fcmp.ll

[InstCombine] Propagate profile metadata when factoring logic operations

When factoring logic operations involving logical AND/OR (represented as selects), InstCombine creates new select instructions. This patch ensures that these new instructions receive 'unknown' profile metadata if the function has profile data, satisfying profile verification requirements.

This fixes profile verification failures in .
DeltaFile
+19-1llvm/test/Transforms/InstCombine/and-fcmp.ll
+16-2llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+0-1llvm/utils/profcheck-xfail.txt
+35-43 files

LLVM/project 4194556llvm/lib/Transforms/InstCombine InstCombineCalls.cpp, llvm/test/Transforms/InstCombine add-shl-mul-umax.ll

Fix profile metadata propagation for umax in InstCombine

Synthesize branch weights for select instructions created from umax intrinsics to satisfy profile verification requirements.
DeltaFile
+15-12llvm/test/Transforms/InstCombine/add-shl-mul-umax.ll
+19-0llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+0-2llvm/utils/profcheck-xfail.txt
+34-143 files

LLVM/project 2c37a1fllvm/test/CodeGen/AMDGPU llvm.amdgcn.image.sample.g16.a16.dim.ll, llvm/test/CodeGen/AMDGPU/GlobalISel llvm.amdgcn.image.atomic.dim.a16.ll llvm.amdgcn.image.load.3d.a16.ll

AMDGPU/GlobalISel: Regbanklegalize rules for INTRIN_IMAGE

Regbanklegalize rules for INTRIN_IMAGE loads and stores.
Because of very large number of different type signatures, rule specifies
only function for lowering (waterfall lowering of RsrcIdx operand if needed)
and this function also applies register banks.
DeltaFile
+268-52llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.atomic.dim.a16.ll
+128-112llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.load.3d.a16.ll
+114-50llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.a16.dim.ll
+78-84llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.image.sample.1d.ll
+58-70llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.image.load.1d.ll
+86-36llvm/test/CodeGen/AMDGPU/llvm.amdgcn.image.sample.g16.a16.dim.ll
+732-40429 files not shown
+1,082-53235 files