[PATCH] D88217: [GVN] Make propagateEquality look into the operand of freeze

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 25 13:19:00 PDT 2020


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/GVN.cpp:2000
       if (LVN < RVN) {
         std::swap(LHS, RHS);
         LVN = RVN;
----------------
Won't something fishy happen here if LHS and RHS are swapped, but LHSFr still refers to the old LHS?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D88217



More information about the llvm-commits mailing list