]> granicus.if.org Git - llvm/commit
[CVP] Generate simpler code for elided with.overflow intrinsics
authorNikita Popov <nikita.ppv@gmail.com>
Sat, 31 Aug 2019 09:58:37 +0000 (09:58 +0000)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 31 Aug 2019 09:58:37 +0000 (09:58 +0000)
commitdebe529284f04c586ce12402d7bba390966c65bc
tree94d736755179d0a9175065b0c10f0d2a588fd4e5
parentbcf61509167ddece924c8eb279b08f83e53a6328
[CVP] Generate simpler code for elided with.overflow intrinsics

Use a { iN undef, i1 false } struct as the base, and only insert
the first operand, instead of using { iN undef, i1 undef } as the
base and inserting both. This is the same as what we do in InstCombine.

Differential Revision: https://reviews.llvm.org/D67034

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370573 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
test/Transforms/CorrelatedValuePropagation/overflows.ll