Skip to content

enzyme pass drops noinline attribute. #2195

Description

@ZuseZ4

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?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions