[PATCH] D78430: [InstSimplify] fold and/or of compares with equality to min/max constant
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 22 01:36:00 PDT 2020
nikic added a comment.
In D78430#1995663 <https://reviews.llvm.org/D78430#1995663>, @spatel wrote:
> Yes, it's fragmented. We could still remove the existing chunks shown here if we think that instcombine is probably good enough. There's that pesky one-use check in the other patch though, so there's a slight chance that we would lose an optimization somewhere. We have to decide if the reduction in code is worthy. Alternatively, I can fix the remaining known bug here, and we'd have full optimization power with some overlap.
I think it's okay to just leave InstSimplify as it was. The existing code is specific to handling the zero case, which is generally more important than other cases, and it is located next to code that is specific to handling the zero case (isKnownNonZero). This seems like a reasonable state to leave things at here.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78430/new/
https://reviews.llvm.org/D78430
More information about the llvm-commits
mailing list