commit | 2cdf5c3e038396a30afb2abafc0492fb137b1828 | [log] [tgz] |
---|---|---|
author | David Majnemer <david.majnemer@gmail.com> | Thu Aug 27 23:03:01 2015 +0000 |
committer | David Majnemer <david.majnemer@gmail.com> | Thu Aug 27 23:03:01 2015 +0000 |
tree | 84ce47fd508202f58f1e56096c5ca3e497372ab7 | |
parent | ef38201ab0ca8a4293e2df544ecf7a22ab47ea1e [diff] |
[ValueTracking] readnone CallInsts are fair game for speculation Any call which is side effect free is trivially OK to speculate. We already had similar logic in EarlyCSE and GVN but we were missing it from isSafeToSpeculativelyExecute. This fixes PR24601. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246232 91177308-0d34-0410-b5e6-96231b3b80d8