[all-commits] [llvm/llvm-project] 7563e3: [CIR] Implement lowering of int-to-bool casts (#13...
Andy Kaylor via All-commits
all-commits at lists.llvm.org
Wed Mar 26 09:44:31 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7563e31127615876b02d13c3d5cf02207adfd073
https://github.com/llvm/llvm-project/commit/7563e31127615876b02d13c3d5cf02207adfd073
Author: Andy Kaylor <akaylor at nvidia.com>
Date: 2025-03-26 (Wed, 26 Mar 2025)
Changed paths:
M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
A clang/test/CIR/CodeGen/int-to-bool.cpp
M clang/test/CIR/Lowering/cast.cir
Log Message:
-----------
[CIR] Implement lowering of int-to-bool casts (#132996)
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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list