1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00

Add comments

llvm-svn: 7283
This commit is contained in:
Chris Lattner 2003-07-23 21:41:57 +00:00
parent ac8a2be5e4
commit 6d10220481

View File

@ -12,6 +12,15 @@
//
// This is a simple worklist driven algorithm.
//
// This pass guarantees that the following cannonicalizations are performed on
// the program:
// 1. If a binary operator has a constant operand, it is moved to the RHS
// 2. Logical operators with constant operands are always grouped so that
// 'or's are performed first, then 'and's, then 'xor's.
// 3. SetCC instructions are converted from <,>,<=,>= to ==,!= if possible
// 4. All SetCC instructions on boolean values are replaced with logical ops
// N. This list is incomplete
//
//===----------------------------------------------------------------------===//
#include "llvm/Transforms/Scalar.h"