EnzymeAD / EnzymeAD/Enzyme

enzyme pass drops noinline attribute.

Open
#2,195 3 comments 1 reaction 2 assignees Claimed by @wsmoses View on GitHub
Dominant language
LLVM
Stars
1.7k
Forks
188
Avg merge
1d 22h
Merged PRs (30d)
26

Description

https://fwd.gymni.ch/ft8pz0

The call to `__enzyme_autodiff` has a callsite debug metadata saying noinline.
This get's dropped by enzyme, so the final call is inlineable.
Now we get the following error:
```
inlinable function call in a function with debug info must have a !dbg location
call void @diffegpt2_forward(ptr %0, ptr %1, ptr %2, ptr %3, ptr %4, i64 4, i64 64, ptr %5, ptr %6)
LLVM ERROR: Broken module found, compilation aborted!
```
I have another compilation pipeline which doesn't encounter this issue, but generally, should Enzyme drop this info?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.