[all-commits] [llvm/llvm-project] 5315e0: [SystemZ] Limit depth of findCCUse() (#185922)
Nikita Popov via All-commits
all-commits at lists.llvm.org
Thu Mar 12 16:30:20 PDT 2026
Branch: refs/heads/release/22.x
Home: https://github.com/llvm/llvm-project
Commit: 5315e0b2f0b5902e4086ba9d32e768d8641a43b2
https://github.com/llvm/llvm-project/commit/5315e0b2f0b5902e4086ba9d32e768d8641a43b2
Author: Nikita Popov <npopov at redhat.com>
Date: 2026-03-12 (Thu, 12 Mar 2026)
Changed paths:
M llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
Log Message:
-----------
[SystemZ] Limit depth of findCCUse() (#185922)
The recursion here has potentially exponential complexity. Avoid this by
limiting the depth of recursion.
An alternative would be to memoize the results. I went with the simpler
depth limit on the assumption that we don't particularly care about very
deep value chains here.
Fixes https://github.com/llvm/llvm-project/issues/185905.
(cherry picked from commit 11e0d6ae4b00114d642f03168f57a007464bf5f6)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list