llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.69k stars 11.86k forks source link

GlobalOpt breaks musttail invariant #35894

Closed llvmbot closed 6 years ago

llvmbot commented 6 years ago
Bugzilla Link 36546
Resolution FIXED
Resolved on Apr 02, 2018 13:07
Version trunk
OS All
Reporter LLVM Bugzilla Contributor
CC @JDevlieghere,@rnk

Extended Description

GlobalOpt changes calling convention of musttail call sites, thus violating the invariant that musttail calls require: matching signatures and cconv.

I'll probably look into it tomorrow myself.

rnk commented 6 years ago

Fix landed in r326376.

llvmbot commented 6 years ago

Nvm, decided to work on it today: https://reviews.llvm.org/D43859