]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commit
SROA: Don't crash on a select with two identical operands.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 21 Apr 2013 17:48:39 +0000 (17:48 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 21 Apr 2013 17:48:39 +0000 (17:48 +0000)
commitd81a0dee5b7df712c584e2a3e556ff2f0677e9df
tree6d20ddd17fed2dcb1e800f858d07667d0df71944
parent54d9a3e2df7055bd4d31a18b29f37c4541653efc
SROA: Don't crash on a select with two identical operands.

This is an edge case that can happen if we modify a chain of multiple selects.
Update all operands in that case and remove the assert. PR15805.

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