Teach isDereferenceablePointer() to look through bitcast constant expressions.
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Thu, 5 Feb 2015 09:15:37 +0000 (09:15 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Thu, 5 Feb 2015 09:15:37 +0000 (09:15 +0000)
commitacd7b00be2b258ad3a1122463fbd6c9180179807
treeb1e6e5d55e7c6c4d5ecf6784a7b5a424dc06533f
parent20d15157e43a182eaf76ec4679876011613b046a
Teach isDereferenceablePointer() to look through bitcast constant expressions.
This fixes a LICM regression due to the new load+store pair canonicalization.

Differential Revision: http://reviews.llvm.org/D7411

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228284 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Operator.h
lib/IR/Value.cpp
test/Transforms/LICM/constexpr.ll [new file with mode: 0644]