[llvm] AMDGPU/GlobalISel: Switch to extended LLTs (PR #207419)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 3 08:46:12 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {undef deprecator}-->


:warning: undef deprecator found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git diff -U0 --pickaxe-regex -S '([^a-zA-Z0-9#_-]undef([^a-zA-Z0-9_-]|$)|UndefValue::get)' 'HEAD~1' HEAD llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp llvm/test/CodeGen/AMDGPU/GlobalISel/add.ll llvm/test/CodeGen/AMDGPU/GlobalISel/add.v2i16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/add.vni16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/amdgpu-irtranslator.ll llvm/test/CodeGen/AMDGPU/GlobalISel/and.ll llvm/test/CodeGen/AMDGPU/GlobalISel/andn2.ll llvm/test/CodeGen/AMDGPU/GlobalISel/ashr.ll llvm/test/CodeGen/AMDGPU/GlobalISel/atomic_load_flat.ll llvm/test/CodeGen/AMDGPU/GlobalISel/atomic_load_global.ll llvm/test/CodeGen/AMDGPU/GlobalISel/atomic_load_local_2.ll llvm/test/CodeGen/AMDGPU/GlobalISel/atomicrmw-fmin-fmax.ll llvm/test/CodeGen/AMDGPU/GlobalISel/bswap.ll llvm/test/CodeGen/AMDGPU/GlobalISel/buffer-atomic-fadd.f32-no-rtn.ll llvm/test/CodeGen/AMDGPU/GlobalISel/buffer-atomic-fadd.f32-rtn.ll llvm/test/CodeGen/AMDGPU/GlobalISel/buffer-atomic-fadd.f64.ll llvm/test/CodeGen/AMDGPU/GlobalISel/buffer-atomic-fadd.v2f16-no-rtn.ll llvm/test/CodeGen/AMDGPU/GlobalISel/buffer-atomic-fadd.v2f16-rtn.ll llvm/test/CodeGen/AMDGPU/GlobalISel/buffer-load-store-pointers.ll llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fma-add-ext-mul.ll llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fma-add-fma-mul.ll llvm/test/CodeGen/AMDGPU/GlobalISel/combine-rsq.ll llvm/test/CodeGen/AMDGPU/GlobalISel/combine-short-clamp.ll llvm/test/CodeGen/AMDGPU/GlobalISel/cvt_f32_ubyte.ll llvm/test/CodeGen/AMDGPU/GlobalISel/dereferenceable-declaration.ll llvm/test/CodeGen/AMDGPU/GlobalISel/divergence-divergent-i1-used-outside-loop.ll llvm/test/CodeGen/AMDGPU/GlobalISel/divergence-structurizer.ll llvm/test/CodeGen/AMDGPU/GlobalISel/divergence-temporal-divergent-i1.ll llvm/test/CodeGen/AMDGPU/GlobalISel/dropped_debug_info_assert.ll llvm/test/CodeGen/AMDGPU/GlobalISel/dummy-target.ll llvm/test/CodeGen/AMDGPU/GlobalISel/dynamic-alloca-uniform.ll llvm/test/CodeGen/AMDGPU/GlobalISel/extractelement.i8.ll llvm/test/CodeGen/AMDGPU/GlobalISel/extractelement.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fabs.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fadd.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fceil.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fdiv.f16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fdiv.f32.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fdiv.f64.ll llvm/test/CodeGen/AMDGPU/GlobalISel/ffloor.ll llvm/test/CodeGen/AMDGPU/GlobalISel/flat-atomic-fadd.f32.ll llvm/test/CodeGen/AMDGPU/GlobalISel/flat-atomic-fadd.f64.ll llvm/test/CodeGen/AMDGPU/GlobalISel/flat-atomic-fadd.v2f16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/flat-scratch.ll llvm/test/CodeGen/AMDGPU/GlobalISel/floor.f64.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fma.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fmad.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fmamix-constant-bus-violation.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fmed3-min-max-const-combine.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fmed3.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fmul.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fmul.v2f16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fneg.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fp-int-conversions.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fpext.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fpow.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fptrunc.ll llvm/test/CodeGen/AMDGPU/GlobalISel/frem.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fshl.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fshr.ll llvm/test/CodeGen/AMDGPU/GlobalISel/fsub.ll llvm/test/CodeGen/AMDGPU/GlobalISel/function-returns.ll llvm/test/CodeGen/AMDGPU/GlobalISel/function-returns.v2i65.ll llvm/test/CodeGen/AMDGPU/GlobalISel/global-atomic-fadd.f32-no-rtn.ll llvm/test/CodeGen/AMDGPU/GlobalISel/global-atomic-fadd.f32-rtn.ll llvm/test/CodeGen/AMDGPU/GlobalISel/global-atomic-fadd.f64.ll llvm/test/CodeGen/AMDGPU/GlobalISel/global-atomic-fadd.v2f16-no-rtn.ll llvm/test/CodeGen/AMDGPU/GlobalISel/global-atomic-fadd.v2f16-rtn.ll llvm/test/CodeGen/AMDGPU/GlobalISel/global-value.ll llvm/test/CodeGen/AMDGPU/GlobalISel/icmp.ll llvm/test/CodeGen/AMDGPU/GlobalISel/insertelement.i16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/insertelement.i8.ll llvm/test/CodeGen/AMDGPU/GlobalISel/insertelement.ll llvm/test/CodeGen/AMDGPU/GlobalISel/intrinsic-trunc.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslate-bf16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-amdgcn-cs-chain.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-amdgcn-sendmsg.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-amdgpu_kernel.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-amdgpu_ps.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-amdgpu_vs.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-assert-align.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-atomicrmw.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-call-implicit-args.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-call-non-fixed.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-call-return-values.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-call-sret.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-call.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-constant-fold-vector-op.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-constantexpr.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-constrained-fp.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-fast-math-flags.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-fixed-function-abi-vgpr-args.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-function-args.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-function-args.v2i65.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-getelementptr.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-indirect-call.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-inline-asm.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-invariant.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-memory-intrinsics.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-metadata.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-non-integral-address-spaces-vectors.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-non-integral-address-spaces.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-prefetch.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-ptrmask.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-sat.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-sibling-call.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-struct-return-intrinsics.ll llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-zext-vec-index.ll llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-llvm.amdgcn.image.atomic.dim.a16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-llvm.amdgcn.image.dim.a16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-llvm.amdgcn.image.load.2d.d16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-llvm.amdgcn.image.load.2d.ll llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-llvm.amdgcn.image.load.2darraymsaa.ll llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-llvm.amdgcn.image.load.3d.ll llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-llvm.amdgcn.image.sample.a16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-llvm.amdgcn.image.sample.d.ll llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-llvm.amdgcn.image.sample.g16.a16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-llvm.amdgcn.image.sample.g16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-llvm.amdgcn.image.store.2d.d16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.abs.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.frexp.mant.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.o.dim.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.load.1d.d16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.load.1d.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.store.2d.d16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.interp.inreg.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.intersect_ray.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.make.buffer.rsrc.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.buffer.atomic.add.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.buffer.atomic.cmpswap.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.buffer.atomic.fadd-with-ret.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.buffer.atomic.fadd.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.buffer.atomic.sub.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.buffer.atomic.swap.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.buffer.load.format.f16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.buffer.load.format.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.buffer.load.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.buffer.load.tfe.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.buffer.store.format.f16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.buffer.store.format.f32.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.buffer.store.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.ptr.buffer.atomic.add.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.ptr.buffer.atomic.cmpswap.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.ptr.buffer.atomic.fadd-with-ret.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.ptr.buffer.atomic.fadd.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.ptr.buffer.atomic.sub.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.ptr.buffer.atomic.swap.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.ptr.buffer.load.format.f16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.ptr.buffer.load.format.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.ptr.buffer.load.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.ptr.buffer.store.format.f16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.ptr.buffer.store.format.f32.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.ptr.buffer.store.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.ptr.tbuffer.load.f16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.ptr.tbuffer.load.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.ptr.tbuffer.store.f16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.ptr.tbuffer.store.i8.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.ptr.tbuffer.store.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.tbuffer.load.f16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.tbuffer.load.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.tbuffer.store.f16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.tbuffer.store.i8.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.tbuffer.store.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.sbfe.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.sdot4.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.set.inactive.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.buffer.atomic.add.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.buffer.atomic.cmpswap.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.buffer.atomic.fadd-with-ret.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.buffer.atomic.fadd.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.buffer.atomic.sub.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.buffer.atomic.swap.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.buffer.load.format.f16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.buffer.load.format.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.buffer.load.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.buffer.load.tfe.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.buffer.store.format.f16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.buffer.store.format.f32.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.buffer.store.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.ptr.buffer.atomic.add.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.ptr.buffer.atomic.cmpswap.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.ptr.buffer.atomic.fadd-with-ret.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.ptr.buffer.atomic.fadd.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.ptr.buffer.atomic.sub.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.ptr.buffer.atomic.swap.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.ptr.buffer.load.format.f16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.ptr.buffer.load.format.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.ptr.buffer.load.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.ptr.buffer.store.format.f16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.ptr.buffer.store.format.f32.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.ptr.buffer.store.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.ptr.tbuffer.load.f16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.ptr.tbuffer.load.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.tbuffer.load.f16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.tbuffer.load.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.ubfe.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.udot4.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.update.dpp.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.wqm.demote.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.memset.ll llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.powi.ll llvm/test/CodeGen/AMDGPU/GlobalISel/load-constant.96.ll llvm/test/CodeGen/AMDGPU/GlobalISel/load-constant32bit.ll llvm/test/CodeGen/AMDGPU/GlobalISel/load-legalize-range-metadata.ll llvm/test/CodeGen/AMDGPU/GlobalISel/load-uniform-in-vgpr.ll llvm/test/CodeGen/AMDGPU/GlobalISel/lshr.ll llvm/test/CodeGen/AMDGPU/GlobalISel/mad.ll llvm/test/CodeGen/AMDGPU/GlobalISel/madmix-constant-bus-violation.ll llvm/test/CodeGen/AMDGPU/GlobalISel/minmaxabs-i64.ll llvm/test/CodeGen/AMDGPU/GlobalISel/mmra.ll llvm/test/CodeGen/AMDGPU/GlobalISel/mubuf-global.ll llvm/test/CodeGen/AMDGPU/GlobalISel/mul-known-bits.i64.ll llvm/test/CodeGen/AMDGPU/GlobalISel/mul.ll llvm/test/CodeGen/AMDGPU/GlobalISel/mul.v2i16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/no-ctlz-from-umul-to-lshr-in-postlegalizer.ll llvm/test/CodeGen/AMDGPU/GlobalISel/or.ll llvm/test/CodeGen/AMDGPU/GlobalISel/orn2.ll llvm/test/CodeGen/AMDGPU/GlobalISel/promote-dependency-on-invariant-result.ll llvm/test/CodeGen/AMDGPU/GlobalISel/regbanklegalize-amdgcn.s.buffer.load.ll llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.image.load.1d.ll llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.image.sample.1d.ll llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.raw.buffer.load.ll llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.raw.ptr.buffer.load.ll llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.s.buffer.load.ll llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.struct.buffer.load.ll llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.struct.buffer.store.ll llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.struct.ptr.buffer.load.ll llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.struct.ptr.buffer.store.ll llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-call.ll llvm/test/CodeGen/AMDGPU/GlobalISel/saddsat.ll llvm/test/CodeGen/AMDGPU/GlobalISel/sbfx.ll llvm/test/CodeGen/AMDGPU/GlobalISel/sdiv.i32.ll llvm/test/CodeGen/AMDGPU/GlobalISel/sdiv.i64.ll llvm/test/CodeGen/AMDGPU/GlobalISel/sdivrem.ll llvm/test/CodeGen/AMDGPU/GlobalISel/select-to-fmin-fmax.ll llvm/test/CodeGen/AMDGPU/GlobalISel/sext_inreg.ll llvm/test/CodeGen/AMDGPU/GlobalISel/shl-ext-reduce.ll llvm/test/CodeGen/AMDGPU/GlobalISel/shl.ll llvm/test/CodeGen/AMDGPU/GlobalISel/smed3.ll llvm/test/CodeGen/AMDGPU/GlobalISel/smul.ll llvm/test/CodeGen/AMDGPU/GlobalISel/srem.i32.ll llvm/test/CodeGen/AMDGPU/GlobalISel/srem.i64.ll llvm/test/CodeGen/AMDGPU/GlobalISel/ssubsat.ll llvm/test/CodeGen/AMDGPU/GlobalISel/store-local.128.ll llvm/test/CodeGen/AMDGPU/GlobalISel/store-local.96.ll llvm/test/CodeGen/AMDGPU/GlobalISel/store-weird-size.ll llvm/test/CodeGen/AMDGPU/GlobalISel/strict_fma.f16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/sub.ll llvm/test/CodeGen/AMDGPU/GlobalISel/sub.v2i16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/true16-merge-values-s16.ll llvm/test/CodeGen/AMDGPU/GlobalISel/trunc-brc.ll llvm/test/CodeGen/AMDGPU/GlobalISel/uaddsat.ll llvm/test/CodeGen/AMDGPU/GlobalISel/ubfx.ll llvm/test/CodeGen/AMDGPU/GlobalISel/udiv.i32.ll llvm/test/CodeGen/AMDGPU/GlobalISel/udiv.i64.ll llvm/test/CodeGen/AMDGPU/GlobalISel/udivrem.ll llvm/test/CodeGen/AMDGPU/GlobalISel/umed3.ll llvm/test/CodeGen/AMDGPU/GlobalISel/unsupported-load.ll llvm/test/CodeGen/AMDGPU/GlobalISel/unsupported-ptr-add.ll llvm/test/CodeGen/AMDGPU/GlobalISel/urem.i32.ll llvm/test/CodeGen/AMDGPU/GlobalISel/urem.i64.ll llvm/test/CodeGen/AMDGPU/GlobalISel/usubsat.ll llvm/test/CodeGen/AMDGPU/GlobalISel/vni8-across-blocks.ll llvm/test/CodeGen/AMDGPU/GlobalISel/xnor.ll llvm/test/CodeGen/AMDGPU/GlobalISel/xor.ll llvm/test/CodeGen/AMDGPU/GlobalISel/zextload.ll llvm/test/CodeGen/AMDGPU/abi-attribute-hints-undefined-behavior.ll llvm/test/CodeGen/AMDGPU/add-max.ll llvm/test/CodeGen/AMDGPU/addrspacecast-gas.ll llvm/test/CodeGen/AMDGPU/addrspacecast-known-non-null.ll llvm/test/CodeGen/AMDGPU/amdgcn-load-offset-from-reg.ll llvm/test/CodeGen/AMDGPU/atomicrmw_usub_sat.ll llvm/test/CodeGen/AMDGPU/bfi_int.ll llvm/test/CodeGen/AMDGPU/bitop3.ll llvm/test/CodeGen/AMDGPU/bitreverse.ll llvm/test/CodeGen/AMDGPU/buffer-fat-pointers-contents-legalization.ll llvm/test/CodeGen/AMDGPU/buffer-rsrc-ptr-ops.ll llvm/test/CodeGen/AMDGPU/build-vector-packed-partial-undef.ll llvm/test/CodeGen/AMDGPU/call-args-inreg.ll llvm/test/CodeGen/AMDGPU/call-argument-types.ll llvm/test/CodeGen/AMDGPU/call-constant.ll llvm/test/CodeGen/AMDGPU/call-constexpr.ll llvm/test/CodeGen/AMDGPU/call-encoding.ll llvm/test/CodeGen/AMDGPU/call-preserved-registers.ll llvm/test/CodeGen/AMDGPU/call-reqd-group-size.ll llvm/test/CodeGen/AMDGPU/call-return-types.ll llvm/test/CodeGen/AMDGPU/call-skip.ll llvm/test/CodeGen/AMDGPU/codegen-prepare-addrspacecast-non-null.ll llvm/test/CodeGen/AMDGPU/ctlz.ll llvm/test/CodeGen/AMDGPU/ctlz_zero_poison.ll llvm/test/CodeGen/AMDGPU/ctpop16.ll llvm/test/CodeGen/AMDGPU/ctpop64.ll llvm/test/CodeGen/AMDGPU/cttz.ll llvm/test/CodeGen/AMDGPU/cttz_zero_poison.ll llvm/test/CodeGen/AMDGPU/dagcombine-fmul-sel.ll llvm/test/CodeGen/AMDGPU/div_i128.ll llvm/test/CodeGen/AMDGPU/div_v2i128.ll llvm/test/CodeGen/AMDGPU/diverge-interp-mov-lower.ll llvm/test/CodeGen/AMDGPU/ds-alignment.ll llvm/test/CodeGen/AMDGPU/dynamic_stackalloc.ll llvm/test/CodeGen/AMDGPU/fadd.f16.ll llvm/test/CodeGen/AMDGPU/fcanonicalize.ll llvm/test/CodeGen/AMDGPU/fdiv_flags.f32.ll llvm/test/CodeGen/AMDGPU/flat-saddr-atomics.ll llvm/test/CodeGen/AMDGPU/flat-saddr-load.ll llvm/test/CodeGen/AMDGPU/flat-saddr-store.ll llvm/test/CodeGen/AMDGPU/fma.f16.ll llvm/test/CodeGen/AMDGPU/fmaximum.ll llvm/test/CodeGen/AMDGPU/fmaxnum.ll llvm/test/CodeGen/AMDGPU/fmed3-cast-combine.ll llvm/test/CodeGen/AMDGPU/fmed3.ll llvm/test/CodeGen/AMDGPU/fminimum.ll llvm/test/CodeGen/AMDGPU/fminnum.ll llvm/test/CodeGen/AMDGPU/fmul-to-ldexp.ll llvm/test/CodeGen/AMDGPU/fold-gep-offset.ll llvm/test/CodeGen/AMDGPU/fp-atomics-gfx950.ll llvm/test/CodeGen/AMDGPU/fp_to_sint.ll llvm/test/CodeGen/AMDGPU/fp_to_uint.ll llvm/test/CodeGen/AMDGPU/fptoi.i128.ll llvm/test/CodeGen/AMDGPU/fptosi-sat-scalar.ll llvm/test/CodeGen/AMDGPU/fptosi-sat-vector.ll llvm/test/CodeGen/AMDGPU/fptoui-sat-scalar.ll llvm/test/CodeGen/AMDGPU/fptoui-sat-vector.ll llvm/test/CodeGen/AMDGPU/fptrunc.f16.ll llvm/test/CodeGen/AMDGPU/fptrunc.ll llvm/test/CodeGen/AMDGPU/fptrunc.v2f16.no.fast.math.ll llvm/test/CodeGen/AMDGPU/freeze.ll llvm/test/CodeGen/AMDGPU/fsqrt.f32.ll llvm/test/CodeGen/AMDGPU/fsqrt.f64.ll llvm/test/CodeGen/AMDGPU/global-load-xcnt.ll llvm/test/CodeGen/AMDGPU/global-saddr-load.ll llvm/test/CodeGen/AMDGPU/indirect-call.ll llvm/test/CodeGen/AMDGPU/indirect-reg-read-imm-idx.ll llvm/test/CodeGen/AMDGPU/integer-mad-patterns.ll llvm/test/CodeGen/AMDGPU/irtranslator-whole-wave-functions.ll llvm/test/CodeGen/AMDGPU/isel-amdgcn-cs-chain-intrinsic-w32.ll llvm/test/CodeGen/AMDGPU/isel-amdgcn-cs-chain-intrinsic-w64.ll llvm/test/CodeGen/AMDGPU/isel-amdgpu-cs-chain-cc.ll llvm/test/CodeGen/AMDGPU/isel-amdgpu-cs-chain-intrinsic-dyn-vgpr-w32.ll llvm/test/CodeGen/AMDGPU/isel-amdgpu-cs-chain-preserve-cc.ll llvm/test/CodeGen/AMDGPU/isel-whole-wave-functions.ll llvm/test/CodeGen/AMDGPU/itofp.i128.bf.ll llvm/test/CodeGen/AMDGPU/itofp.i128.ll llvm/test/CodeGen/AMDGPU/lds-barrier-memoperand.ll llvm/test/CodeGen/AMDGPU/literal64.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.av.load.b128.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.bitop3.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.bvh8_intersect_ray.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.class.f16.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.cluster.load.async.to.lds.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.cvt.f16.fp8.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.cvt.f32.fp8.err.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.cvt.fp8.f16.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.cvt.scalef32.sr.pk.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.div.fixup.f16.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.ds.gws.barrier-bundle.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.ds.gws.sema.release.all.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.ds.read.tr.gfx950.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.dual_intersect_ray.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.fcmp.w32.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.fcmp.w64.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.flat.prefetch.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.fmad.ftz.f16.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.global.load.async.to.lds.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.global.prefetch.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.global.store.async.from.lds.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.init.whole.wave-w32.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.init.whole.wave-w64.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.interp.f16.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.interp.inreg.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.intersect_ray.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.inverse.ballot.i64.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.is.private.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.load.monitor.gfx1250.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.load.tr.gfx1250.w32.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.permlane.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.permlane32.swap.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.permlane64.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.ptr.buffer.atomic.fadd_rtn_errors.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.quadmask.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.raw.buffer.atomic.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.raw.buffer.load.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.raw.ptr.buffer.atomic.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.raw.tbuffer.load.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.raw.tbuffer.store.d16.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.readfirstlane.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.readfirstlane.ptr.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.readlane.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.reduce.and.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.reduce.fadd.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.reduce.fmax.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.reduce.fmin.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.reduce.fsub.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.reduce.or.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.reduce.umax.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.reduce.umin.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.reduce.xor.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.s.barrier.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.s.buffer.prefetch.data.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.s.memrealtime.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.s.prefetch.data.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.s.prefetch.inst.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.sched.group.barrier.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.buffer.atomic.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.buffer.load.format.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.ptr.buffer.atomic.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.tbuffer.load.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.tbuffer.store.d16.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wave.shuffle.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wmma.gfx1250.w32.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wmma.imm.gfx1250.w32.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wmma.imod.gfx1250.w32.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wmma.index.gfx1250.w32.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wqm.ll llvm/test/CodeGen/AMDGPU/llvm.amdgcn.writelane.ll llvm/test/CodeGen/AMDGPU/llvm.exp.f64.ll llvm/test/CodeGen/AMDGPU/llvm.exp.ll llvm/test/CodeGen/AMDGPU/llvm.exp10.f64.ll llvm/test/CodeGen/AMDGPU/llvm.exp10.ll llvm/test/CodeGen/AMDGPU/llvm.exp2.f64.ll llvm/test/CodeGen/AMDGPU/llvm.exp2.ll llvm/test/CodeGen/AMDGPU/llvm.fptrunc.round.ll llvm/test/CodeGen/AMDGPU/llvm.frexp.ll llvm/test/CodeGen/AMDGPU/llvm.get.rounding.ll llvm/test/CodeGen/AMDGPU/llvm.is.fpclass.f16.ll llvm/test/CodeGen/AMDGPU/llvm.ldexp.ll llvm/test/CodeGen/AMDGPU/llvm.log.ll llvm/test/CodeGen/AMDGPU/llvm.log10.ll llvm/test/CodeGen/AMDGPU/llvm.log2.ll llvm/test/CodeGen/AMDGPU/llvm.modf.ll llvm/test/CodeGen/AMDGPU/llvm.set.rounding.ll llvm/test/CodeGen/AMDGPU/llvm.sponentry.ll llvm/test/CodeGen/AMDGPU/llvm.sqrt.f16.ll llvm/test/CodeGen/AMDGPU/load-atomic-flat.ll llvm/test/CodeGen/AMDGPU/load-atomic-global.ll llvm/test/CodeGen/AMDGPU/load-atomic-local.ll llvm/test/CodeGen/AMDGPU/lower-work-group-id-intrinsics-hsa.ll llvm/test/CodeGen/AMDGPU/lower-work-group-id-intrinsics-opt.ll llvm/test/CodeGen/AMDGPU/lower-work-group-id-intrinsics.ll llvm/test/CodeGen/AMDGPU/lrint.ll llvm/test/CodeGen/AMDGPU/lround.ll llvm/test/CodeGen/AMDGPU/mad-mix-hi.ll llvm/test/CodeGen/AMDGPU/mad-mix-lo.ll llvm/test/CodeGen/AMDGPU/mad-mix.ll llvm/test/CodeGen/AMDGPU/med3-knownbits.ll llvm/test/CodeGen/AMDGPU/memset-param-combinations.ll llvm/test/CodeGen/AMDGPU/memset-pattern.ll llvm/test/CodeGen/AMDGPU/minimummaximum.ll llvm/test/CodeGen/AMDGPU/minmax.ll llvm/test/CodeGen/AMDGPU/module-lds-false-sharing.ll llvm/test/CodeGen/AMDGPU/pseudo-scalar-transcendental.ll llvm/test/CodeGen/AMDGPU/roundeven.ll llvm/test/CodeGen/AMDGPU/rsq.f64.ll llvm/test/CodeGen/AMDGPU/scalar-float-sop1.ll llvm/test/CodeGen/AMDGPU/scale-offset-flat.ll llvm/test/CodeGen/AMDGPU/scale-offset-global.ll llvm/test/CodeGen/AMDGPU/scale-offset-smem.ll llvm/test/CodeGen/AMDGPU/shrink-add-sub-constant.ll llvm/test/CodeGen/AMDGPU/strict_fadd.f16.ll llvm/test/CodeGen/AMDGPU/strict_fmul.f16.ll llvm/test/CodeGen/AMDGPU/strict_fsub.f16.ll llvm/test/CodeGen/AMDGPU/strict_ldexp.f16.ll llvm/test/CodeGen/AMDGPU/target-mem-intrinsic-metadata.ll llvm/test/CodeGen/AMDGPU/unsupported-image-a16.ll llvm/test/CodeGen/AMDGPU/unsupported-image-g16.ll llvm/test/CodeGen/AMDGPU/v_pack.ll llvm/test/CodeGen/AMDGPU/v_sat_pk_u8_i16.ll llvm/test/CodeGen/AMDGPU/vector-reduce-add.ll llvm/test/CodeGen/AMDGPU/vector-reduce-and.ll llvm/test/CodeGen/AMDGPU/vector-reduce-fadd.ll llvm/test/CodeGen/AMDGPU/vector-reduce-fmax.ll llvm/test/CodeGen/AMDGPU/vector-reduce-fmin.ll llvm/test/CodeGen/AMDGPU/vector-reduce-fminimum.ll llvm/test/CodeGen/AMDGPU/vector-reduce-fmul.ll llvm/test/CodeGen/AMDGPU/vector-reduce-mul.ll llvm/test/CodeGen/AMDGPU/vector-reduce-or.ll llvm/test/CodeGen/AMDGPU/vector-reduce-smax.ll llvm/test/CodeGen/AMDGPU/vector-reduce-smin.ll llvm/test/CodeGen/AMDGPU/vector-reduce-umax.ll llvm/test/CodeGen/AMDGPU/vector-reduce-umin.ll llvm/test/CodeGen/AMDGPU/vector-reduce-xor.ll llvm/test/CodeGen/AMDGPU/whole-wave-functions.ll llvm/test/CodeGen/AMDGPU/workgroup-id-in-arch-sgprs.ll llvm/test/CodeGen/Generic/GlobalISel/irtranslator-byte-type.ll
``````````

</details>


The following files introduce new uses of undef:
 - llvm/test/CodeGen/AMDGPU/lds-barrier-memoperand.ll

[Undef](https://llvm.org/docs/LangRef.html#undefined-values) is now deprecated and should only be used in the rare cases where no replacement is possible. For example, a load of uninitialized memory yields `undef`. You should use `poison` values for placeholders instead.

In tests, avoid using `undef` and having tests that trigger undefined behavior. If you need an operand with some unimportant value, you can add a new argument to the function and use that instead.

For example, this is considered a bad practice:
```llvm
define void @fn() {
  ...
  br i1 undef, ...
}
```

Please use the following instead:
```llvm
define void @fn(i1 %cond) {
  ...
  br i1 %cond, ...
}
```

Please refer to the [Undefined Behavior Manual](https://llvm.org/docs/UndefinedBehavior.html) for more information.



https://github.com/llvm/llvm-project/pull/207419


More information about the llvm-commits mailing list