Generalize isSafeToSpeculativelyExecute to work on arbitrary
authorDan Gohman <gohman@apple.com>
Wed, 4 Jan 2012 23:01:09 +0000 (23:01 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 4 Jan 2012 23:01:09 +0000 (23:01 +0000)
commitfebaf8401779fedf8db7b02e499c5e39848fb9f5
tree4e2693e9a4627c162c4f9e6874eb73094485ae3e
parenta5f8942e055abf1640fcd822406f875e1b2d8916
Generalize isSafeToSpeculativelyExecute to work on arbitrary
Values, rather than just Instructions, since it's interesting
for ConstantExprs too.

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