Skip to content

remove rcp intrinsic and move lowering out of DXILIntrinsicExpansion.cpp and into CGBuiltin.cpp #87784

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
farzonl opened this issue Apr 5, 2024 · 1 comment · Fixed by #88401
Assignees
Labels
backend:DirectX clang:codegen IR generation bugs: mangling, exceptions, etc.

Comments

@farzonl
Copy link
Member

farzonl commented Apr 5, 2024

SPIRV and DXIL both lower to 1/x so an intrinsic isn't necessary.

Originally posted by @farzonl in #87367 (comment)

@farzonl farzonl self-assigned this Apr 11, 2024
@farzonl farzonl moved this to Active in HLSL Support Apr 11, 2024
farzonl added a commit that referenced this issue Apr 11, 2024
Removing the intrinsic because there is no opCodes for rcp in DXIL or
SPIR-V.
Moving means we don't have to re-implement this feature for each
backend.

fixes #87784

Co-authored-by: Farzon Lotfi <[email protected]>
@github-project-automation github-project-automation bot moved this from Active to Done in HLSL Support Apr 11, 2024
@EugeneZelenko EugeneZelenko added the clang:codegen IR generation bugs: mangling, exceptions, etc. label Apr 11, 2024
@llvmbot
Copy link
Member

llvmbot commented Apr 11, 2024

@llvm/issue-subscribers-clang-codegen

Author: Farzon Lotfi (farzonl)

SPIRV and DXIL both lower to `1/x` so an intrinsic isn't necessary.

Originally posted by @farzonl in #87367 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:DirectX clang:codegen IR generation bugs: mangling, exceptions, etc.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants