llvm-project
e73f0896 - [Attributor][NFC] Return early for attributes that are not allowed (#245769)

Commit
3 days ago
[Attributor][NFC] Return early for attributes that are not allowed (#245769) Looking up or creating an abstract attribute of a kind that is not allowed still hashed the position and probed the attribute map, only to find nothing. attributor-light allows few kinds but queries others often, e.g. `AAPotentialValues` for every simplification query. Check whether the kind is allowed before probing the map. `opt` instructions on CTMark bitcode: attributor-light -1.9% to -2.3%, attributor-light-cgscc -1.4% to -2.0%, full attributor up to +0.25%; `amdgpu-attributor` on HIP device code -0.3%. Co-authored-by: Matt Arsenault <Matthew.Arsenault@amd.com> Assisted-by: Claude Opus 5.5
Author
Parents
Loading