[LSR/LFTR] Move two utilities to common code for reuse [nfc]
authorPhilip Reames <preames@rivosinc.com>
Mon, 20 Mar 2023 15:44:15 +0000 (08:44 -0700)
committerPhilip Reames <listmail@philipreames.com>
Mon, 20 Mar 2023 16:05:38 +0000 (09:05 -0700)
commit54539fa8b3a3b8875b4e3d8b0737c66052a0edcd
treeda996422385a4aa6235f7e8edf4261fb1bb9402b
parentafce10c5b60fada1db369d3770f4389da7ef30ef
[LSR/LFTR] Move two utilities to common code for reuse [nfc]

We're working on a transform in LSR which is essentiall an inverse of LFTR (in certain sub-cases).  Move utilties so that they can be reused.
llvm/include/llvm/Analysis/ValueTracking.h
llvm/include/llvm/Transforms/Utils/LoopUtils.h
llvm/lib/Analysis/ValueTracking.cpp
llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
llvm/lib/Transforms/Utils/LoopUtils.cpp