Issue 175965
Summary [X86] Cannot select TC_RETURN with +retpoline-indirect-calls
Labels backend:X86, crash-on-valid
Assignees
Reporter nikic
    ```llvm
define void @foo(ptr %g) #0 {
  tail call void %g()
  ret void
}

attributes #0 = { "target-features"="+retpoline-indirect-calls" }
```

`llc -mtriple=x86_64-pc-windows-gnu` (also with `-msvc`) produces:

```
LLVM ERROR: Cannot select: t5: ch = X86ISD::TC_RETURN t0, t2, TargetConstant:i32<0>, RegisterMask:Untyped
  t2: i64,ch = CopyFromReg t0, Register:i64 %0
In function: foo
```

This is a regression from LLVM 21.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to