]> granicus.if.org Git - clang/commit
Remove the hack that turns sdiv by a power of 2 to ashr, and
authorDan Gohman <gohman@apple.com>
Tue, 11 Aug 2009 22:40:09 +0000 (22:40 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 11 Aug 2009 22:40:09 +0000 (22:40 +0000)
commitdf1109434abd465a4db2e6f69ec2688866660367
tree2e00c4b513bb23be72391fa3f216122162d52d72
parent27ba2f019f7ba173348bebf53770dc025c087ef2
Remove the hack that turns sdiv by a power of 2 to ashr, and
use the new "exact" sdiv to allow LLVM optimization to perform
this transformation.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78739 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprScalar.cpp