llvm-project
llvm-project copied to clipboard
Inliner generates 'bitcast' instead of 'addrspacecast'
| Bugzilla Link | 25602 |
| Resolution | FIXED |
| Resolved on | Nov 29, 2019 11:57 |
| Version | trunk |
| OS | Linux |
| Attachments | Reproducer |
| CC | @ekatz,@hfinkel |
Extended Description
To reproduce: opt -inline -S < repro.ll
Output with debug flag on: Args: opt -inline -S -debug Inliner visiting SCC: bar: 0 call sites. Inliner visiting SCC: foo: 1 call sites. Inlining: cost=always, Call: %call = call <32 x i16> @bar(%S addrspace(4)* byval %d) -> Deleting dead function: bar CGSCCPASSMGR: Refreshing SCC with 1 nodes: Call graph node for function: 'foo'<<0x60141d0>> #uses=1
CGSCCPASSMGR: SCC Refresh didn't change call graph. Invalid bitcast %lo.i = bitcast %S* %d1 to <32 x i16> addrspace(4)* LLVM ERROR: Broken function found, compilation aborted!
Seems like the Inliner is creating a 'bitcast' instead of an 'addrspacecast'.
Fixed in LLVM v7.0.