[llvm] [CGP] Despeculate ctlz/cttz with "illegal" integer types (PR #137197)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 24 22:22:31 PDT 2025
================
@@ -285,30 +285,35 @@ define i32 @ctlo_i32_undef(i32 %x) {
ret i32 %tmp2
}
-define i64 @ctlo_i64(i64 %x) {
+define i64 @ctlo_i64(i64 %x) nounwind {
; X86-NOCMOV-LABEL: ctlo_i64:
; X86-NOCMOV: # %bb.0:
+; X86-NOCMOV-NEXT: pushl %esi
----------------
phoebewang wrote:
How about a i128 on a 64-bit platform?
https://github.com/llvm/llvm-project/pull/137197
More information about the llvm-commits
mailing list