-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[Scalarizer] Intrinsic uadd_with_overflow
should be scalarizable
#126809
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
Labels
Comments
inbelic
pushed a commit
that referenced
this issue
Feb 13, 2025
Addresses issue #126809 - Made `uadd_with_overflow`, `sadd_with_overflow`, `usub_with_overflow`, `ssub_with_overflow`, `umul_with_overflow`, and `smul_with_overflow` trivially scalarizable in `isTriviallyScalarizable()` from `VectorUtils.cpp` - Renamed and updated the test `Scalarizer/uadd_overflow.ll` to `Scalarizer/uadd_with_overflow.ll` to check that `uadd_with_overflow` gets scalarized - Added a test `Scalarizer/sincos.ll` to ensure the bug fix #113625 still works
joaosaffran
pushed a commit
to joaosaffran/llvm-project
that referenced
this issue
Feb 14, 2025
) Addresses issue llvm#126809 - Made `uadd_with_overflow`, `sadd_with_overflow`, `usub_with_overflow`, `ssub_with_overflow`, `umul_with_overflow`, and `smul_with_overflow` trivially scalarizable in `isTriviallyScalarizable()` from `VectorUtils.cpp` - Renamed and updated the test `Scalarizer/uadd_overflow.ll` to `Scalarizer/uadd_with_overflow.ll` to check that `uadd_with_overflow` gets scalarized - Added a test `Scalarizer/sincos.ll` to ensure the bug fix llvm#113625 still works
sivan-shani
pushed a commit
to sivan-shani/llvm-project
that referenced
this issue
Feb 24, 2025
) Addresses issue llvm#126809 - Made `uadd_with_overflow`, `sadd_with_overflow`, `usub_with_overflow`, `ssub_with_overflow`, `umul_with_overflow`, and `smul_with_overflow` trivially scalarizable in `isTriviallyScalarizable()` from `VectorUtils.cpp` - Renamed and updated the test `Scalarizer/uadd_overflow.ll` to `Scalarizer/uadd_with_overflow.ll` to check that `uadd_with_overflow` gets scalarized - Added a test `Scalarizer/sincos.ll` to ensure the bug fix llvm#113625 still works
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
uadd_with_overflow
intrinsic should be made scalarizable.The primary use-case that spawned this issue is to be able to have its vector form be scalarized so that it can be lowered to several
UAddc
DXIL ops which perform the same function on scalars.Some issues/PRs that benefit from this change:
AddUint64
HLSL Function #99205Issues potentially affected by this change:
The text was updated successfully, but these errors were encountered: