summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/phi-known-bits-operand-order.ll
Commit message (Collapse)AuthorAgeFilesLines
* [ValueTracking] Fix recurrence detection to check both PHI operands.Florian Hahn2019-08-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: Currently we fail to compute known bits for recurrences where the first incoming value is the start value of the recurrence. Instead of exiting the loop when the first incoming value is not the step of the recurrence, continue to check the second incoming value. The original code uses a loop to handle both cases, but incorrectly exits instead of continuing. Reviewers: lebedev.ri, spatel, nikic Reviewed By: lebedev.ri Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D66216 llvm-svn: 369088
* [InstCombine] Precommit test case for D66216Florian Hahn2019-08-151-0/+99
llvm-svn: 368978
OpenPOWER on IntegriCloud