[llvm] [AMDGPU][GlobalISel] Minor G_BITCAST improvements and a fix to the artifact combiner (PR #215703)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 03:41:41 PDT 2026
================
@@ -71,9 +71,13 @@ class LegalizationArtifactCombiner {
Register TruncSrc;
if (mi_match(SrcReg, MRI, m_GTrunc(m_Reg(TruncSrc)))) {
LLVM_DEBUG(dbgs() << ".. Combine MI: " << MI);
- if (MRI.getType(DstReg) == MRI.getType(TruncSrc))
+ auto DstType = MRI.getType(DstReg);
----------------
arsenm wrote:
No auto
https://github.com/llvm/llvm-project/pull/215703
More information about the llvm-commits
mailing list