llvm/llvm-project
Auf GitHub ansehenAMDGPU should implement TargetLowering::hasAndNot
Open
#112.550 geöffnet am 16. Okt. 2024
backend:AMDGPUgood first issue
Repository-Metriken
- Stars
- (26.378 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 1T 2h) (1.000 gemergte PRs in 30 T)
Beschreibung
AMDGPU should implement this optimization hook: https://github.com/llvm/llvm-project/blob/b333edd0d6da744c099ad3ff3b5fbd2d4e4dd45a/llvm/include/llvm/CodeGen/TargetLowering.h#L797
This is available on the SALU for i32 and i64 (s_andn2_b32 and s_andn2_b64). The implementation therefore should be approximately !N->isDivergent() && (N->getValueType() == i32 || i64).