[llvm-commits] [llvm] r42308 - in /llvm/trunk: lib/Target/X86/X86ISelDAGToDAG.cpp lib/Target/X86/X86ISelLowering.cpp lib/Target/X86/X86ISelLowering.h test/CodeGen/X86/divrem.ll

2007-09-25 Thread Dan Gohman
Author: djg Date: Tue Sep 25 13:23:27 2007 New Revision: 42308 URL: http://llvm.org/viewvc/llvm-project?rev=42308view=rev Log: 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

Re: [llvm-commits] [llvm] r42308 - in /llvm/trunk: lib/Target/X86/X86ISelDAGToDAG.cpp lib/Target/X86/X86ISelLowering.cpp lib/Target/X86/X86ISelLowering.h test/CodeGen/X86/divrem.ll

2007-09-25 Thread Evan Cheng
Yay! :-) On Sep 25, 2007, at 11:23 AM, Dan Gohman wrote: Author: djg Date: Tue Sep 25 13:23:27 2007 New Revision: 42308 URL: http://llvm.org/viewvc/llvm-project?rev=42308view=rev Log: When both x/y and x%y are needed (x and y both scalar integer), compute both results with a single

Re: [llvm-commits] [llvm] r42308 - in /llvm/trunk: lib/Target/X86/X86ISelDAGToDAG.cpp lib/Target/X86/X86ISelLowering.cpp lib/Target/X86/X86ISelLowering.h test/CodeGen/X86/divrem.ll

2007-09-25 Thread Chris Lattner
URL: http://llvm.org/viewvc/llvm-project?rev=42308view=rev Log: 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