summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2019-08-16 09:15:02 +0000
committerFlorian Hahn <flo@fhahn.com>2019-08-16 09:15:02 +0000
commit75be1a9e5821c39f09666ef83812dbb9d0e75189 (patch)
tree710beb43791eb97a0fa253556920ef61b263b1cd /llvm/lib/CodeGen
parent120cffccf8c3a46f6003a3b5a6b0f39130df4bd2 (diff)
downloadbcm5719-llvm-75be1a9e5821c39f09666ef83812dbb9d0e75189.tar.gz
bcm5719-llvm-75be1a9e5821c39f09666ef83812dbb9d0e75189.zip
[ValueTracking] Fix recurrence detection to check both PHI operands.
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
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud