Optimize exact sdiv by a constant power of 2 to ashr.
authorDan Gohman <gohman@apple.com>
Tue, 11 Aug 2009 20:47:47 +0000 (20:47 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 11 Aug 2009 20:47:47 +0000 (20:47 +0000)
commit1bdf5dc835e74ff6710dbd452601542d19116d08
tree665dd1efc0a54ac8cc90d80e29d238baf79221eb
parent825b72b0571821bf2d378749f69d6c4cfb52d2f9
Optimize exact sdiv by a constant power of 2 to ashr.

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