[PATCH] D130949: [NFC][NewGVN] Remove OpIsSafeForPHIOfOpsHelper()
Konstantina Mitropoulou via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 24 15:16:50 PDT 2022
kmitropoulou added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/NewGVN.cpp:2588
+ if (!isa<Instruction>(I))
+ return true;
+ auto OISIt = OpSafeForPHIOfOps.find(I);
----------------
asbirlea wrote:
> Shouldn't this be `continue;`?
You are right :) Thank you!
================
Comment at: llvm/lib/Transforms/Scalar/NewGVN.cpp:2597
+ OpSafeForPHIOfOps.insert({I, true});
+ return true;
+ }
----------------
asbirlea wrote:
> Same comment (`continue;`)
Same here :)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130949/new/
https://reviews.llvm.org/D130949
More information about the llvm-commits
mailing list