[all-commits] [llvm/llvm-project] 352b61: [SCCP] Drop unnecessary early exit for ExtractValu...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Wed Apr 22 14:08:32 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 352b612a7141bdb07e8b043f4ec9b8c2d5faca45
https://github.com/llvm/llvm-project/commit/352b612a7141bdb07e8b043f4ec9b8c2d5faca45
Author: Florian Hahn <florian_hahn at apple.com>
Date: 2020-04-22 (Wed, 22 Apr 2020)
Changed paths:
M llvm/lib/Transforms/Scalar/SCCP.cpp
M llvm/test/Transforms/SCCP/conditions-ranges.ll
M llvm/test/Transforms/SCCP/constant-range-struct.ll
Log Message:
-----------
[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
More information about the All-commits
mailing list