DWBH21 wrote: I have split the checks into LLVMCIR and OGCG to account for the difference in their control-flow structures. In CIR, cir::IfOp::create is given the Mask != 0 condition with an empty else branch. so the bit-scan operation is emitted inside the then block, followed by the end block. OGCG instead branches to the end block when Mask == 0, so the condition and branch destinations are reversed and the end block appears before the bit-scan block in the emitted IR.
https://github.com/llvm/llvm-project/pull/234304 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
