mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Add comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7283 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eca0c5c379
commit
2cd9196e87
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user