Arthur Eubanks 259390de9a [LCG] Don't skip invalidation of LazyCallGraph if CFG analyses are preserved
The CFG being changed and the overall call graph are not related, we can introduce/remove calls without changing the CFG.

Resolves one of the issues in PR51946.

Reviewed By: asbirlea

Differential Revision: https://reviews.llvm.org/D111275
2021-10-11 13:30:47 -07:00

11 lines
289 B
LLVM

; Make sure we invalidate lcg even when preserving domtree
; RUN: opt -passes='require<lcg>,function(instcombine)' -debug-pass-manager -disable-output < %s 2>&1 | FileCheck %s
; CHECK: Invalidating {{.*}} LazyCallGraphAnalysis
define void @f() {
lbl:
%a = add i32 1, 2
unreachable
}