Do not short circuit hoistIVInc when recomputation of poison flags is needed.
authorOwen Anderson <resistor@mac.com>
Mon, 2 Jan 2023 05:27:52 +0000 (22:27 -0700)
committerOwen Anderson <resistor@mac.com>
Wed, 11 Jan 2023 06:03:07 +0000 (23:03 -0700)
commit90c184662925b8f17bc9cf05cd60a9e98201fff6
tree24d9af20b020d9d972c06e6c206d2b534f315b1b
parente9d571d3b6829f668e424d9dfce09f9ed7f297d9
Do not short circuit hoistIVInc when recomputation of poison flags is needed.

Fixes https://github.com/llvm/llvm-project/issues/59777

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D140836
llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
llvm/test/Transforms/IndVarSimplify/iv-poison.ll [new file with mode: 0644]