[InstCombine] Reduce code duplication in GEP of PHI transform; NFC
authorNikita Popov <nikita.ppv@gmail.com>
Sat, 28 Mar 2020 17:44:35 +0000 (18:44 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 28 Mar 2020 18:07:25 +0000 (19:07 +0100)
commitb1f78baeaa1aadba8ab8e5b0ba102cec146a16fd
treed11f62185747f9a13536dfe93bf24f8464c200f8
parente8743c0f389d43aeab053904c6407280bfbfd3a6
[InstCombine] Reduce code duplication in GEP of PHI transform; NFC

The `NewGEP->setOperand(DI, NewPN)` call was duplicated, and the
insertion of NewGEP is the same in both if/else, so we can extract it.
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp