[LoopUtils] Pass SCEVExpander instead SE to addRuntimeChecks.
authorFlorian Hahn <flo@fhahn.com>
Wed, 27 Jan 2021 17:13:38 +0000 (17:13 +0000)
committerFlorian Hahn <flo@fhahn.com>
Wed, 27 Jan 2021 17:36:19 +0000 (17:36 +0000)
commit28410d17f5f9d0282412d5b8cb5c161e7df0f183
treeb1f012413062a71026b67b1ef6f48a0d1f7c0605
parentf3449ed6073cac58efd9b62d0eb285affa650238
[LoopUtils] Pass SCEVExpander instead SE to addRuntimeChecks.

This gives the user control over which expander to use, which in turn
allows the user to decide what to do with the expanded instructions.

Used in D75980.

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D94295
llvm/include/llvm/Transforms/Utils/LoopUtils.h
llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h
llvm/lib/Transforms/Utils/LoopUtils.cpp
llvm/lib/Transforms/Utils/LoopVersioning.cpp
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp