Correctly fold divide-by-constant, even when faced with overflow.
authorNick Lewycky <nicholas@mxc.ca>
Mon, 18 Feb 2008 22:48:05 +0000 (22:48 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 18 Feb 2008 22:48:05 +0000 (22:48 +0000)
commite0cfecf47d466b5776371526c27969e07177b839
treea4f75ff0026e3e2935d8f68ac2e42385a490f17d
parentb00ee21f21858c18af20fd57c7a5e2a6d38ff70c
Correctly fold divide-by-constant, even when faced with overflow.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47287 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/2008-02-16-SDivOverflow.ll [new file with mode: 0644]
test/Transforms/InstCombine/2008-02-16-SDivOverflow2.ll [new file with mode: 0644]