OSDN Git Service

Fold vector selects with undef elements in the condition. Fixes PR18319.
authorNick Lewycky <nicholas@mxc.ca>
Tue, 31 Dec 2013 19:30:47 +0000 (19:30 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 31 Dec 2013 19:30:47 +0000 (19:30 +0000)
commit99cebadb5c971b5946a727dfb09ba43b6d7fe542
treef01a4d7a5cf39bedbc682ebf9e7eaf7f037b8d0d
parent5cbbd7e1a5fb86e5495326c02f77356a357ec439
Fold vector selects with undef elements in the condition. Fixes PR18319.
Patch by Ilia Filippov!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198267 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/ConstantFold.cpp
test/Assembler/ConstantExprFoldSelect.ll [new file with mode: 0644]
test/Bitcode/select.ll