summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/JumpThreading/unreachable-loops.ll
Commit message (Collapse)AuthorAgeFilesLines
* [JumpThreading] Stop searching predecessor when the current bb is in aWei Mi2019-07-261-0/+63
unreachable loop. updatePredecessorProfileMetadata in jumpthreading tries to find the first dominating predecessor block for a PHI value by searching upwards the predecessor block chain. But jumpthreading may see some temporary IR state which contains unreachable bb not being cleaned up. If an unreachable loop happens to be on the predecessor block chain, keeping chasing the predecessor block will run into an infinite loop. The patch fixes it. Differential Revision: https://reviews.llvm.org/D65310 llvm-svn: 367154
OpenPOWER on IntegriCloud