mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 11:56:06 +00:00

Lowering of int-to-bool casts had been left as NYI because the incubator implemented it by lowering to cir.cmp, which hasn't been upstreamed yet, but there is no reason this cast can't be lowered directly to LLVM's compare operation when we're lowering directly to the LLVM dialect. This change lowers the cast directly to an LLVM compare to zero.