Run DCE after a LoopFlatten test to reduce spurious output [nfc]
commit442da60a3f11e644aeefe65f52b14cf82c5d6c8e
authorPhilip Reames <preames@rivosinc.com>
Wed, 1 Nov 2023 18:59:57 +0000 (1 11:59 -0700)
committerPhilip Reames <listmail@philipreames.com>
Wed, 1 Nov 2023 19:06:10 +0000 (1 12:06 -0700)
treecf33cbde62313c3a9662cbdf67b5adcbe0e0046c
parenta3efd892fa57b72c2a0875a2fc9033b57f90d696
Run DCE after a LoopFlatten test to reduce spurious output [nfc]

LoopFlatten uses IndVars mechanics to widen induction variables, but then
fails to cleanup the dead instructions returned via the API.  This isn't
a functional problem, but means that this test is highly sensative to
indvars internals in an unhelpful way.  Use DCE to "normalize" the test
output to avoid false positives in a later change.
llvm/test/Transforms/LoopFlatten/widen-iv.ll