[PATCH] D152529: [NewGVN] Fold equivalent freeze instructions

Konstantina Mitropoulou via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 9 09:44:48 PDT 2023


kmitropoulou added a comment.

In D152529#4409089 <https://reviews.llvm.org/D152529#4409089>, @foad wrote:

>> To check, does NewGVN fully replace one instruction with another, it they are considered equivalent?
>
> I am not 100% sure. Do we have any NewGVN experts?

The arguments of the freeze are the same. So, the two instructions are equivalent. Therefor, all the uses of b will be replaced with a.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152529/new/

https://reviews.llvm.org/D152529



More information about the llvm-commits mailing list