summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/bitcast-phi-uselistorder.ll
Commit message (Collapse)AuthorAgeFilesLines
* [InstCombine] Fix user iterator invalidation in bitcast of phi transformNikita Popov2020-01-141-8/+5
| | | | | | | | | This fixes the issue encountered in D71164. Instead of using a range-based for, manually iterate over the users and advance the iterator beforehand, so we do not skip any users due to iterator invalidation. Differential Revision: https://reviews.llvm.org/D72657
* [InstCombine] Add test for iterator invalidation bug; NFCNikita Popov2020-01-141-0/+36
OpenPOWER on IntegriCloud