This optimizes xors that appear due to legalizing setge/setle which
require an xor with 1. This reduces the number of xors and may
allow the xor to fold with a beqz or bnez.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I didn't notice, but this only handled or. The and case ended up with an not due to SimplifyDemandedBits.
Comment Actions
Can you land the prior version and post the xor n, -1 bit as a separate patch? It's slightly non-obvious.