OSDN Git Service

InstCombine: Fix a crash in Descale for multiply-by-zero
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 10 Jul 2014 17:13:27 +0000 (17:13 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 10 Jul 2014 17:13:27 +0000 (17:13 +0000)
commit5b8419d32e09e66bc9ca00ef24a204f7ac764f9d
tree594a1ee8a48067f8c67528ac80324cd244448979
parentc1a6d65d21545ad1622e2f8041c6a55756b71599
InstCombine: Fix a crash in Descale for multiply-by-zero

Fix a crash in `InstCombiner::Descale()` when a multiply-by-zero gets
created as an argument to a GEP partway through an iteration, causing
-instcombine to optimize the GEP before the multiply.

rdar://problem/17615671

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212742 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstructionCombining.cpp
test/Transforms/InstCombine/descale-zero.ll [new file with mode: 0644]