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

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 9 10:43:38 PDT 2023


foad added a comment.

In D152529#4409191 <https://reviews.llvm.org/D152529#4409191>, @kmitropoulou wrote:

> 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 operands of the two freeze instructions are the same. So, the two freeze instructions are equivalent. Therefore, all the uses of b will be replaced with a.

Thanks! That's good enough for me.


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