summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-12-01 10:58:34 +0000
committerNikita Popov <nikita.ppv@gmail.com>2018-12-01 10:58:34 +0000
commit0c5d6ccbfc089b3335a78d910febff44c3dd622c (patch)
tree3e286d283381129ed31af749e6144b4d36b8ca92 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
parent958b94d6791a345e2221ee4291cb209a7ec579ba (diff)
downloadbcm5719-llvm-0c5d6ccbfc089b3335a78d910febff44c3dd622c.tar.gz
bcm5719-llvm-0c5d6ccbfc089b3335a78d910febff44c3dd622c.zip
[InstCombine] Support ssub.sat canonicalization for non-splats
Extend ssub.sat(X, C) -> sadd.sat(X, -C) canonicalization to also support non-splat vector constants. This is done by generalizing the implementation of the isNotMinSignedValue() helper to return true for constants that are non-splat, but don't contain any signed min elements. Differential Revision: https://reviews.llvm.org/D55011 llvm-svn: 348072
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud