Files
clang-p2996/llvm/lib/Transforms/Scalar/GVN.cpp
Nikita Popov 20e9b31f88 [GVN] Fix metadata combining for non-local loads
Make MaterializeAdjustedValue() responsible for adjusting load
metadata in all cases, so it also covers the non-local case.

In conjunction with that, we no longer need to call
patchReplacementInstruction() for the local case, which would
unnecessarily drop metadata if the replacement value just happened
to be a load (without actual load CSE).
2023-04-20 12:32:10 +02:00

119 KiB