aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorLU-JOHN <John.Lu@amd.com>2025-10-22 08:42:29 -0500
committerGitHub <noreply@github.com>2025-10-22 08:42:29 -0500
commit9abbec66bfa34922521ef88fad1d6fcd43c1c462 (patch)
tree3a81eb07ba2991aea064dc26230a17d8064e57a6 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent411be14eab7ac4600595ad622810e8918c54856d (diff)
downloadllvm-9abbec66bfa34922521ef88fad1d6fcd43c1c462.zip
llvm-9abbec66bfa34922521ef88fad1d6fcd43c1c462.tar.gz
llvm-9abbec66bfa34922521ef88fad1d6fcd43c1c462.tar.bz2
[AMDGPU] Reland "Remove redundant s_cmp_lg_* sX, 0" (#164201)
Reland PR https://github.com/llvm/llvm-project/pull/162352. Fix by excluding SI_PC_ADD_REL_OFFSET from instructions that set SCC = DST!=0. Passes check-libc-amdgcn-amd-amdhsa now. Distribution of instructions that allowed a redundant S_CMP to be deleted in check-libc-amdgcn-amd-amdhsa test: ``` S_AND_B32 485 S_AND_B64 47 S_ANDN2_B32 42 S_ANDN2_B64 277492 S_CSELECT_B64 17631 S_LSHL_B32 6 S_OR_B64 11 ``` --------- Signed-off-by: John Lu <John.Lu@amd.com> Co-authored-by: Matt Arsenault <arsenm2@gmail.com>
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions