[InstCombine] return the result of the GEP of PHI transformation early
authorDanila Malyutin <dmalyutin@azul.com>
Wed, 14 Dec 2022 10:31:15 +0000 (13:31 +0300)
committerDanila Malyutin <dmalyutin@azul.com>
Wed, 14 Dec 2022 11:56:38 +0000 (14:56 +0300)
commit4a65e6783bee6c155c16944013df8665ec4d4bed
tree01da1fc2b591c3b54bfb56c5ce0416d5cbef4d5b
parent11c7a753886ce46de52559929a2e05f036e0b16b
[InstCombine] return the result of the GEP of PHI transformation early

Without this change this function could return nullptr if no further
transformation took place making InstCombine pass incorrectly report no
IR changes preventing analyses invalidation.

Differential Revision: https://reviews.llvm.org/D140004
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp