[LICM] Add assert of AST/MSSA exclusiveness.
authorAlina Sbirlea <asbirlea@google.com>
Tue, 3 Nov 2020 01:50:53 +0000 (17:50 -0800)
committerAlina Sbirlea <asbirlea@google.com>
Tue, 3 Nov 2020 02:04:43 +0000 (18:04 -0800)
commitf514b32a89936880b792f917ea7645d4d635378b
tree32099533e95e0c0e1ea2245fd2ecaf78271e59b2
parent8b37a4e6caac61c55bc413ab43c1becf906474d6
[LICM] Add assert of AST/MSSA exclusiveness.

The API `canSinkOrHoistInst` may be called by LoopSink. Add assert to
avoid having two analyses passed in.
llvm/lib/Transforms/Scalar/LICM.cpp