[llvm] [IR] Allow type change in ValueAsMetadata::handleRAUW (PR #76969)

Orlando Cazalet-Hyams via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 10 03:51:40 PST 2024


OCHyams wrote:

This seems fairly harmless to me, especially as @jmorse points out `Value::replaceAllUsesWith` will still check types are the same through `Value::doRAUW`, though I'm not sure I understand the use-case very well.

Would it be possible for you to add unittest showing this in action? Otherwise SGTM.

https://github.com/llvm/llvm-project/pull/76969


More information about the llvm-commits mailing list