Issue 135285
Summary [DirectX] Intrinsic `usub.sat` is preventing the generation of legal DXIL
Labels new issue
Assignees farzonl
Reporter farzonl
    Earlier passes are  performaing analysis and replacing  intrinsics with `usub.sat`

One example:
one replacement is umax(X, C) + C with usub.sat(X, C) 

https://github.com/llvm/llvm-project/blob/1d8966e2465364dca8aea71d9331d46a0e908265/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp#L997-L1001

That means we need to legalize usub.sat. Instead of trying to reverse the transformation because there are many the plan will be to emit what the behavior of usub.sat will be.

AC:
Legalize `usub.sat`
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to