HomePhabricator

[SCEV] Use depth limit for trunc analysis

Authored by tejohnson on Mar 12 2019, 11:28 AM.

Description

[SCEV] Use depth limit for trunc analysis

Summary:
This fixes an extremely long compile time caused by recursive analysis
of truncs, which were not previously subject to any depth limits unlike
some of the other ops. I decided to use the same control used for
sext/zext, since the routines analyzing these are sometimes mutually
recursive with the trunc analysis.

Reviewers: mkazantsev, sanjoy

Subscribers: sanjoy, jdoerfert, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D58994

llvm-svn: 355949

Details

Committed
tejohnsonMar 12 2019, 11:28 AM
Differential Revision
D58994: [SCEV] Use depth limit for trunc analysis
Parents
rG9dc2c1d564b2: Set useful flags for vector imm setting instructions
Branches
Unknown
Tags
Unknown