[ValueTracking] Factor our common speculation suppression logic [NFC]
authorPhilip Reames <listmail@philipreames.com>
Tue, 10 Sep 2019 21:12:29 +0000 (21:12 +0000)
committerPhilip Reames <listmail@philipreames.com>
Tue, 10 Sep 2019 21:12:29 +0000 (21:12 +0000)
commit1e1db800487cbaf96e8f7809e3df42ba979c121d
treedbbbe3f0f5f91f2db38effd71ac89eef916c8f1b
parent699bea494c01fffe351223d8064ed8a091b13957
[ValueTracking] Factor our common speculation suppression logic [NFC]

Expose a utility function so that all places which want to suppress speculation (when otherwise legal) due to ordering and/or sanitizer interaction can do so.

llvm-svn: 371556
llvm/include/llvm/Analysis/ValueTracking.h
llvm/lib/Analysis/ValueTracking.cpp
llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp