[PATCH] D73697: [LoopPredication] Optimize two exits case.
Evgeniy via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 30 21:29:17 PDT 2020
ebrevnov abandoned this revision.
ebrevnov added a comment.
It turned out that in the targeted case there is the following expression min(a,b) = min(min(a,c), b) where rhs min is reassociated. Due to this foldICmpWithMinMax can't handle it. I've uploaded a series of 3 patched for NaryReassociate (https://reviews.llvm.org/D88285, https://reviews.llvm.org/D88286, https://reviews.llvm.org/D88287) which converts that to min(a,b) = min(min(a,b), c). With that in place foldICmpWithMinMax does its job.
Abandoned.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73697/new/
https://reviews.llvm.org/D73697
More information about the llvm-commits
mailing list