[SCEVExpander] Assert single pointer op in add (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Sun, 29 Aug 2021 18:29:04 +0000 (20:29 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 29 Aug 2021 18:30:56 +0000 (20:30 +0200)
commit3f162e8e6da14726c7666f5c935c503fcb784a41
treec1e65a58ae2a8697d88dea296f15281662a2f550
parente6a5dd60ffa3073c0ab69f9b1836cf2e743bcf0c
[SCEVExpander] Assert single pointer op in add (NFC)

There can only be one pointer operand in an add expression, and
we have sorted operands to guarantee that it is the first. As
such, the pointer check for other operands is dead code.
llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp