3 Commits

Author SHA1 Message Date
Roman Lebedev
77f2db23d0
[NFC] Port all Float2Int tests to -passes= syntax 2022-12-08 02:38:43 +03:00
Nikita Popov
c0cc98251a [Float2Int] Make sure dependent ranges are calculated first (PR54669)
The range calculation in walkForwards() assumes that the ranges of
the operands have already been calculated. With the used visit
order, this is not necessarily the case when there are multiple
roots. (There is nothing guaranteeing that instructions are visited
in topological order.)

Fix this by queuing instructions for reprocessing if the operand
ranges haven't been calculated yet.

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

Differential Revision: https://reviews.llvm.org/D122817
2022-04-04 10:18:39 +02:00
Nikita Popov
a9d4a7ad80 [Float2Int] Add test for PR54669 (NFC) 2022-04-01 12:27:37 +02:00