circuitous icon indicating copy to clipboard operation
circuitous copied to clipboard

Bit negation is done through icmp 8bit value

Open sabastiaan opened this issue 2 years ago • 0 comments

If a bit is checked whether it is the value 1, then it gets a direct edge if the target is also an i1 But if we check if that same bit is 0, then we compare the bit with icmp_eq. Since this is an icmp_eq both targets are promoted to 8bits.

A single NOT node should be sufficient replacement.

image

sabastiaan avatar Jul 13 '22 12:07 sabastiaan