llvm/llvm-project

AMDGPU should implement TargetLowering::hasAndNot

Open

#112,550 创建于 2024年10月16日

在 GitHub 查看
 (17 评论) (0 反应) (1 负责人)C++ (10,782 fork)batch import
backend:AMDGPUgood first issue

仓库指标

Star
 (26,378 star)
PR 合并指标
 (平均合并 1天 2小时) (30 天内合并 1,000 个 PR)

描述

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).

贡献者指南