[PATCH] D47023: Limit the number of phis in intptr/ptrint folding
David Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 17 13:13:30 PDT 2018
davidxl added a comment.
My profile shows that with the 20000 phi case, the cycles are cut in half
with the limit.
The remaining problem is in : [.] llvm::BasicBlock::getFirstNonPHI
I guess a short fix would be to have a customized version of getFirstNonPhi
which returns an 'end' if the limit is reached. You can try if that works
for you.
thanks,
David
Repository:
rL LLVM
https://reviews.llvm.org/D47023
More information about the llvm-commits
mailing list