OSDN Git Service

[ConstantFolding] improve folding of binops with vector undef operand
authorSanjay Patel <spatel@rotateright.com>
Mon, 20 Aug 2018 18:19:02 +0000 (18:19 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 20 Aug 2018 18:19:02 +0000 (18:19 +0000)
commit8ae5787df5b23e1286c157ffcdd23578483f6ab2
treed724bce9e5d9314ac25ad7bdc6de882e17d467e8
parentf654675def7611d1e02238ed7f7b9e799f4c4760
[ConstantFolding] improve folding of binops with vector undef operand

A non-undef operand may still have undef constant elements,
so we should always propagate the vector results per-lane.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340194 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/ConstantFold.cpp
test/Analysis/ConstantFolding/vector-undef-elts.ll