OSDN Git Service

Scalar: Ignore ConstantData in processAssumption
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 24 Sep 2016 20:00:38 +0000 (20:00 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 24 Sep 2016 20:00:38 +0000 (20:00 +0000)
commit3a296bc80d5d02a11e7bc95d8d743d3416df5790
treebaf46721e60927d7a9b1a150b82022f4ed1bf1da
parente31ddb432936642e8c992a420ab6e8afb3965dde
Scalar: Ignore ConstantData in processAssumption

Assumptions on UndefValue and ConstantPointerNull aren't relevant to
other users.  Ignore them entirely to avoid wasting cycles walking
through their (possibly extremely extensive (cross-module)) use-lists.

It wasn't clear how to add a specific test for this, and it'll be
covered anyway by an eventual patch that asserts when trying to access
the use-list of an instance of ConstantData.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282334 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/AlignmentFromAssumptions.cpp