Skip to content
Unverified Commit caaf61eb authored by Sergei Barannikov's avatar Sergei Barannikov Committed by GitHub
Browse files

[SDag] Fold saddo[_carry] with bitwise-not argument to ssubo[_carry] (#66571)

Fold `(saddo (not a), 1)` to `(ssubo 0, a)` and
`(saddo_carry (not a), b, c)` to `(ssubo_carry b, a, !c)`.

Proof: https://alive2.llvm.org/ce/z/Lj49YM

This is the same as https://reviews.llvm.org/D46505 and
https://reviews.llvm.org/D59208, but for signed opcodes.
parent 102838d3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment