commit | a37c9f7506af622b9f29a35466b33c650c75e9f7 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Tue Sep 25 18:23:27 2007 +0000 |
committer | Dan Gohman <gohman@apple.com> | Tue Sep 25 18:23:27 2007 +0000 |
tree | 4749c09d72e3e4f7fc9c436ac321fd9cca2f5a1b | |
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