[InstCombinePHI] Remove dead PHI on UnaryOperator (#71386)
commit5d3d08463ddae193c2b2c7d58e465dd397078269
authorLiqinWeng <liqin.weng@spacemit.com>
Tue, 7 Nov 2023 01:45:33 +0000 (7 09:45 +0800)
committerGitHub <noreply@github.com>
Tue, 7 Nov 2023 01:45:33 +0000 (7 09:45 +0800)
tree648e3ba0cb6c1b434d6e7115dd106bac3f030dc7
parent0936a718492d248a726b8e8d4529e4aa194bc8e9
[InstCombinePHI] Remove dead PHI on UnaryOperator (#71386)

This patch mainly solves the problem of dead PHI on UnaryOperator
llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp
llvm/test/Transforms/InstCombine/phi.ll