OSDN Git Service

Analysis: Return early for UndefValue in computeKnownBits
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 24 Sep 2016 20:42:02 +0000 (20:42 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 24 Sep 2016 20:42:02 +0000 (20:42 +0000)
commit5cb29541603a97167a07afe8ac6bd59e863bf2d1
treea2e832d6edf897802f7bf92eae27ffe51198056c
parentc7ebf69800e7671932c74a729128e90da60c4605
Analysis: Return early for UndefValue in computeKnownBits

There is no benefit in looking through assumptions on UndefValue to
guess known bits.  Return early to avoid walking their use-lists, and
assert that all instances of ConstantData are handled here for similar
reasons (UndefValue was the only integer/pointer holdout).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282337 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ValueTracking.cpp