[IVUsers] Check LoopSimplify cache earlier (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Sat, 10 Apr 2021 20:17:35 +0000 (22:17 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 10 Apr 2021 20:58:13 +0000 (22:58 +0200)
commit8de2f1ff79aa2a8a72b8c44ea70b48aa9f282ae5
tree0177fb76d833081ab820ff4dbdd9e45dfcd7c05c
parent00ef28ef21f0a46059203c5aa96e9febe1192e43
[IVUsers] Check LoopSimplify cache earlier (NFC)

Check the cache before calling isLoopSimplifyForm(). Otherwise we'd
always perform the check for the innermost loop and only skip it
for dominating loops.
llvm/lib/Analysis/IVUsers.cpp