4 Commits

Author SHA1 Message Date
David Green
161bfa5f53 [LoopFlattening] Check for extra uses on Mul
Similar to D138404, we were not guarding against extra uses of the Mul.
In most cases other checks would catch the issue due to unsupported
instructions in the outer loop, but certain non-canonical loop forms
could still get through.

Fixes #59339

Differential Revision: https://reviews.llvm.org/D141114
2023-01-06 15:32:38 +00:00
David Green
8cc9530ebc [LoopFlatten][NFC] Run instnamer on pr59339.ll 2023-01-06 15:32:38 +00:00
Roman Lebedev
72482c5167
[NFC] Port all LoopFlatten tests to -passes= syntax 2022-12-08 02:38:46 +03:00
Sjoerd Meijer
1515308a54 [LoopFlatten] Precommit test for GH issue #59339. NFC. 2022-12-05 15:38:47 +00:00