[all-commits] [llvm/llvm-project] 8142cf: [AMDGPU] Visit all PHIs in each call to optimizeLi...
Pierre van Houtryve via All-commits
all-commits at lists.llvm.org
Tue Jul 8 06:36:12 PDT 2025
Branch: refs/heads/users/pierre-vh/fix-late-cgp-invalid-phi
Home: https://github.com/llvm/llvm-project
Commit: 8142cf37d0285b879f3560fa42f64dc0eca59327
https://github.com/llvm/llvm-project/commit/8142cf37d0285b879f3560fa42f64dc0eca59327
Author: pvanhout <pierre.vanhoutryve at amd.com>
Date: 2025-07-08 (Tue, 08 Jul 2025)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPULateCodeGenPrepare.cpp
A llvm/test/CodeGen/AMDGPU/amdgpu-late-codegenprepare-crash-splat.ll
Log Message:
-----------
[AMDGPU] Visit all PHIs in each call to optimizeLiveType
Make the Visited set a local variable, otherwise we can reject a PHI
(those that do not have a zeroinitializer constant) but mark it as visited,
and the rest of the function thinks the PHI is ok when it isn't.
This is a bit crude but it's the only fix that consistently worked in my testing.
Fixes SWDEV-541767
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list