[all-commits] [llvm/llvm-project] e811d1: PeepholeOpt: Handle subregister compose when looki...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Mon Feb 17 07:13:50 PST 2025
Branch: refs/heads/users/arsenm/peephole-opt/handle-subregister-compose-through-reg-sequence
Home: https://github.com/llvm/llvm-project
Commit: e811d171356d83bfba138e743d252812b161c0ac
https://github.com/llvm/llvm-project/commit/e811d171356d83bfba138e743d252812b161c0ac
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2025-02-17 (Mon, 17 Feb 2025)
Changed paths:
M llvm/lib/CodeGen/PeepholeOptimizer.cpp
M llvm/test/CodeGen/AMDGPU/GlobalISel/extractelement.ll
M llvm/test/CodeGen/AMDGPU/issue92561-restore-undef-scc-verifier-error.ll
M llvm/test/CodeGen/AMDGPU/peephole-opt-fold-reg-sequence-subreg.mir
Log Message:
-----------
PeepholeOpt: Handle subregister compose when looking through reg_sequence
Previously this would give up on folding subregister copies through
a reg_sequence if the input operand already had a subregister index.
d246cc618adc52fdbd69d44a2a375c8af97b6106 stopped introducing these
subregister uses, and this is the first step to lifting that restriction.
I was expecting to be able to implement this only purely with compose /
reverse compose, but I wasn't able to make it work so relies on testing
the lanemasks for whether the copy reads a subset of the input.
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