Currently, we use SExtValue to decide whether to invert tbz or tbnz.
However, for the case zext (xor x, c), we should use ZExt rather
than SExt otherwise we will generate totally opposite branches.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This fixed https://bugs.llvm.org/show_bug.cgi?id=51505, not sure if you were aware of it. Thanks either way!