This is one of the initial commit of "RFC: Devirtualization v2" proposal:
https://docs.google.com/document/d/16GVtCpzK8sIHNc2qZz6RN8amICNBtvjWUod2SujZVEo/edit?usp=sharing
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
llvm/include/llvm/IR/IRBuilder.h | ||
---|---|---|
1960 ↗ | (On Diff #140496) | nit: s/an/a |
Comment Actions
Do we also need to teach the bitcode reader to upgrade calls to the old intrinsic into calls to the new one?
Comment Actions
Good catch, haven't thought about it. Added autoupgrade (with also autoupgrade for the non-polimorphic barrier, not sure if it was working but I haven't added that feature.
Comment Actions
Looks good to me, but you should get signoff from someone more involved with IR maintenance.
Comment Actions
Assuming that it is valid to replace the old intrinsic with the new one (which isn't 100% clear from the doc), this seems fine.