aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2020-04-10 10:57:43 +0100
committerFlorian Hahn <flo@fhahn.com>2020-04-10 11:02:57 +0100
commit1a02aaeaa4f8675490da38ee8cb0d4a6d39815dd (patch)
treef3074e501b8efd85e2b62fe0dd0ebc7ea7b2a76c /llvm/lib/Object/ELFObjectFile.cpp
parent9107594f376e37e99c71881404c686b306f93ad2 (diff)
downloadllvm-1a02aaeaa4f8675490da38ee8cb0d4a6d39815dd.zip
llvm-1a02aaeaa4f8675490da38ee8cb0d4a6d39815dd.tar.gz
llvm-1a02aaeaa4f8675490da38ee8cb0d4a6d39815dd.tar.bz2
[SCCP] Use SimplifyBinOp for non-integer constant/expressions & overdef.
For non-integer constants/expressions and overdefined, I think we can just use SimplifyBinOp to do common folds. By just passing a context with the DL, SimplifyBinOp should not try to get additional information from looking at definitions. For overdefined values, it should be enough to just pass the original operand. Note: The comment before the `if (isconstant(V1State)...` was wrong originally: isConstant() also matches integer ranges with a single element. It is correct now. Reviewers: efriedma, davide, mssimpso, aartbik Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D76459
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions