]> git.ipfire.org Git - thirdparty/valgrind.git/commit
VEX/priv/ir_opt.c: Also fold Iop_And1 expressions when possible
authorMark Wielaard <mark@klomp.org>
Sun, 15 Dec 2024 20:26:21 +0000 (21:26 +0100)
committerMark Wielaard <mark@klomp.org>
Sat, 21 Dec 2024 00:47:42 +0000 (01:47 +0100)
commit1f8a81cc2493670a82334bd5b4bc1ffa6d02174b
tree20b9ec88741d2e6de3dc0eba532a0081865f1b72
parentd984d9aabe5b89d6787c2604b72c09360e7b6fc0
VEX/priv/ir_opt.c: Also fold Iop_And1 expressions when possible

Treat Iop_And1 just like And16/And32/And64. Fold fully constant And1
expressions and handle And1(x,True), And1(True,x), And1(x,False),
And1(False,x) and And1(x,x).

Make sure isOnesU handles Ico_U1 (isZerosU and sameIRExprs already
did).

https://bugs.kde.org/show_bug.cgi?id=468575#c52
VEX/priv/ir_opt.c