Control if GVN and LICM pass should retain debug locations of moved instructions.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
No test?
I'm curious what motivated this. I'm sure there are more places that do this kind of thing.
llvm/lib/Transforms/Scalar/LICM.cpp | ||
---|---|---|
138 | s/lines/line/ |
Comment Actions
Adding a flag for this seems worthy of a broader design discussion - so far we've been able to align the needs of profilers (never wanting to attribute a sample to a location that didn't actually execute - so hoisted or merged code cannot use one of its original locations) and debugger users. If that alignment is no longer going to be sufficient - I think an llvm-dev discussion about what the goals/priorities/policies are going forward would be good.
(also followed up on the previous review/commit - I've got general doubts about that patch too, that this one would not address)
s/lines/line/