mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Add two notes for correlated-expression optimizations.
llvm-svn: 139263
This commit is contained in:
parent
6853bdde5b
commit
f4e9cbfc05
@ -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