Files
clang-p2996/llvm/lib/Transforms/Utils/FunctionComparator.cpp
Nuri Amari 049993eae6 [FunctionComparator] Differentiate instructions passing different MDStrings (#69543)
Prior to this patch, differing metadata operands to two otherwise
identical instructions was not enough to consider the instructions
different in the eyes of the function comparator. This breaks LLVM
virtual function elimination, among other features.

In this patch, we handle the case where two associated operands are
MDStrings of different value. This patch does not differentiate more
complex metadata operands.

---------

Co-authored-by: Nuri Amari <nuriamari@fb.com>
2023-10-19 13:59:57 -07:00

34 KiB