[all-commits] [llvm/llvm-project] a1783b: [SimpifyCFG] Remove recursion from FoldCondBranchO...
Carl Ritson via All-commits
all-commits at lists.llvm.org
Tue Aug 10 03:34:01 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a1783b54e8b873c4a668259ae69bfc150f879dca
https://github.com/llvm/llvm-project/commit/a1783b54e8b873c4a668259ae69bfc150f879dca
Author: Carl Ritson <carl.ritson at amd.com>
Date: 2021-08-10 (Tue, 10 Aug 2021)
Changed paths:
M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
Log Message:
-----------
[SimpifyCFG] Remove recursion from FoldCondBranchOnPHI. NFCI.
Avoid stack overflow errors on systems with small stack sizes
by removing recursion in FoldCondBranchOnPHI.
This is a simple change as the recursion was only iteratively
calling the function again on the same arguments.
Ideally this would be compiled to a tail call, but there is
no guarantee.
Reviewed By: lebedev.ri
Differential Revision: https://reviews.llvm.org/D107803
More information about the All-commits
mailing list