HomePhabricator

[SCEV] don't query getSCEV() for incomplete phis

Authored by shchenz on Jul 31 2020, 10:28 PM.

Description

[SCEV] don't query getSCEV() for incomplete phis

querying getSCEV() for incomplete phis leads to wrong cache value in ExprToIVMap,
because incomplete phis may be simplified to same value before get SCEV expression.

Reviewed By: lebedev.ri, mkazantsev

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