[ConstantFold] Extract GEP of GEP fold (NFCI)
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 23 Jul 2021 20:46:52 +0000 (22:46 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 23 Jul 2021 21:49:40 +0000 (23:49 +0200)
commit923727e8bedac0257f5603ca3a1032737b01be96
tree687fc66713e2394f5955a7db4243bede373c6ee0
parent85157c0079031b51c0446b222894aec4aad71b53
[ConstantFold] Extract GEP of GEP fold (NFCI)

Move this fold into a separate function and clean up the control
flow a bit.
llvm/lib/IR/ConstantFold.cpp