[PATCH] D101359: [NARY] Don't optimize min/max if there are side uses (part2)
Max Kazantsev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 30 02:33:06 PDT 2021
mkazantsev added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/NaryReassociate.cpp:617
+ if (LHS->hasOneUser()) {
+ if (LHS->user_back() != I)
+ HasSideUse = true;
----------------
How is this even possible? I could not find explaining comment here, but intuitively `LHS` and `RHS` are expected to be arguments of `I`. If `LHS` has the only user then it must be `I`. no?
Could you please add a method comment about what `I`, `LHS` and `RHS` actually are?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101359/new/
https://reviews.llvm.org/D101359
More information about the llvm-commits
mailing list