Revert "InstCombine: Clean up weird code that talks about a modulus that's long gone."
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 23 Jan 2013 17:52:29 +0000 (17:52 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 23 Jan 2013 17:52:29 +0000 (17:52 +0000)
commite4c46fec738596f551df6b2678cddc1f0aa09e30
tree6d75709ea50f7bac75230a14ffa98e44fc51198f
parentd15bb30dba1a657590e574a0d21ca22434f7c93c
Revert "InstCombine: Clean up weird code that talks about a modulus that's long gone."

This causes crashes during the build of compiler-rt during selfhost. Add a
testcase for coverage.

llvm-svn: 173279
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/test/Transforms/InstCombine/getelementptr.ll