mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 00:14:20 +00:00
Add two notes for correlated-expression optimizations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139263 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0472e040cb
commit
3e328ecbd8
@ -2348,3 +2348,13 @@ which can do this in a single operation (instruction or libcall). It is
|
||||
probably best to do this in the code generator.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
unsigned foo(unsigned x, unsigned y) { return (x & y) == 0 || x == 0; }
|
||||
should fold to (x & y) == 0.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
unsigned foo(unsigned x, unsigned y) { return x > y && x != 0; }
|
||||
should fold to x > y.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
Loading…
x
Reference in New Issue
Block a user