Fixes parity codegen issue where we know all but the lowest bit is zero, we can replace the ICMPNE with 0 comparison with a zext/trunc
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I think you are missing
if (TLI.getBooleanContents(VT) == TargetLowering::UndefinedBooleanContent || TLI.getBooleanContents(VT) == TargetLowering::ZeroOrOneBooleanContent)
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | ||
---|---|---|
3273–3274 | SGTM - cheers |
?