Skip to content
  • Paul Redmond's avatar
    Transform (x&C)>V into (x&C)!=0 where possible · 5917f4c7
    Paul Redmond authored
    When the least bit of C is greater than V, (x&C) must be greater than V
    if it is not zero, so the comparison can be simplified.
    
    Although this was suggested in Target/X86/README.txt, it benefits any
    architecture with a directly testable form of AND.
    
    Patch by Kevin Schoedel
    
    llvm-svn: 170576
    5917f4c7
Loading