You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
boolfoo(int a)
{
return (a > 5) != (a <= 5);
}
boolbar(int a)
{
return (a < 5) != (a >= 5);
}
When checking this simplification with alive2, is it okay to try to represent an integer that is 1 greater than or 1 less than a certain integer using add or sub as follows? https://alive2.llvm.org/ce/z/iddeDw
The text was updated successfully, but these errors were encountered:
k-arrows
changed the title
clang cannot simplify (a gt/lt b) != (a le/ge b) where be is a specific constant
clang cannot simplify (a gt/lt b) != (a le/ge b) where b is a specific constant
Nov 1, 2023
Example:
https://godbolt.org/z/7PMr8vc98
When checking this simplification with alive2, is it okay to try to represent an integer that is 1 greater than or 1 less than a certain integer using
add
orsub
as follows?https://alive2.llvm.org/ce/z/iddeDw
The text was updated successfully, but these errors were encountered: