[llvm] r203315 - [DAGCombiner] Recognize another rotation idiom

Adam Nemet anemet at apple.com
Sat Mar 8 14:03:56 PST 2014


On Mar 8, 2014, at 1:36 AM, Joerg Sonnenberger <joerg at britannica.bec.de> wrote:

> On Fri, Mar 07, 2014 at 11:56:28PM -0000, Adam Nemet wrote:
>> Added: llvm/trunk/test/CodeGen/X86/rotate4.ll
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/rotate4.ll?rev=203315&view=auto
>> ==============================================================================
>> --- llvm/trunk/test/CodeGen/X86/rotate4.ll (added)
>> +++ llvm/trunk/test/CodeGen/X86/rotate4.ll Fri Mar  7 17:56:28 2014
>> @@ -0,0 +1,126 @@
>> +; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=generic | FileCheck %s
>> +
>> +; Check that we recognize this idiom for rotation too:
>> +;    a << (b & 31) | a >> ((0 - b) & 31)
> 
> Use OPSIZE-1 here too?

Sure thing.  It’s r203361.

Adam

> Joerg





More information about the llvm-commits mailing list