[SCCP] Drop unnecessary early exit for ExtractValueInst.
authorFlorian Hahn <florian_hahn@apple.com>
Wed, 22 Apr 2020 21:00:51 +0000 (22:00 +0100)
committerFlorian Hahn <florian_hahn@apple.com>
Wed, 22 Apr 2020 21:07:59 +0000 (22:07 +0100)
commit352b612a7141bdb07e8b043f4ec9b8c2d5faca45
tree31ef2b538c1c77316ca38720a59ba237feb86495
parent2d1baf606ab46daf9a322e5751d364c55c86deca
[SCCP] Drop unnecessary early exit for ExtractValueInst.

visitExtractValueInst uses mergeInValue, so it already can handle
constant ranges. Initially the early exit was using isOverdefined to
keep things as NFC during the initial move to ValueLatticeElement.
As the function already supports constant ranges, it can just use
ValueState[&I].isOverdefined.

Reviewers: efriedma, mssimpso, davide

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D78393
llvm/lib/Transforms/Scalar/SCCP.cpp
llvm/test/Transforms/SCCP/conditions-ranges.ll
llvm/test/Transforms/SCCP/constant-range-struct.ll