diff options
author | Dan Gohman <gohman@apple.com> | 2007-09-25 18:23:27 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-09-25 18:23:27 +0000 |
commit | a37c9f7506af622b9f29a35466b33c650c75e9f7 (patch) | |
tree | 4749c09d72e3e4f7fc9c436ac321fd9cca2f5a1b /lib/Transforms/Scalar/LoopIndexSplit.cpp | |
parent | 798b4afd48ebc0acc165789ab913ccd28466ef68 (diff) |
When both x/y and x%y are needed (x and y both scalar integer), compute
both results with a single div or idiv instruction. This uses new X86ISD
nodes for DIV and IDIV which are introduced during the legalize phase
so that the SelectionDAG's CSE can automatically eliminate redundant
computations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42308 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopIndexSplit.cpp')
0 files changed, 0 insertions, 0 deletions