commit | 9019a6092df23d44d1f9bf5917bf454073a7a9d1 | [log] [tgz] |
---|---|---|
author | David Majnemer <david.majnemer@gmail.com> | Fri Nov 14 21:21:15 2014 +0000 |
committer | David Majnemer <david.majnemer@gmail.com> | Fri Nov 14 21:21:15 2014 +0000 |
tree | b0eff96ac10d7017b2319793ffa52c7d2eb4e3d5 | |
parent | 1523db7c64186226317a9e5baecfbde8eb04c580 [diff] |
InstCombine: Fix infinite loop caused by visitFPTrunc We would attempt to replace a fptrunc of an frem with an identical fptrunc. This would cause the new fptrunc to be added to the worklist. Of course, this results in an infinite loop because we will keep visiting the newly created fptruncs. This fixes PR21576. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222040 91177308-0d34-0410-b5e6-96231b3b80d8