Skip to content

enzyme pass drops noinline attribute. #2195

Open
@ZuseZ4

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions