mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-14 15:25:25 +00:00
[Speculation] NFC: more header comments
explaining how it differs from SpeculativeExecuteBB in SimplifyCFG. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237724 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -41,6 +41,15 @@
|
|||||||
// Later passes sink back much of the speculated code that did not enable
|
// Later passes sink back much of the speculated code that did not enable
|
||||||
// further optimization.
|
// further optimization.
|
||||||
//
|
//
|
||||||
|
// This pass is more aggressive than the function SpeculativeyExecuteBB in
|
||||||
|
// SimplifyCFG. SimplifyCFG will not speculate if no selects are introduced and
|
||||||
|
// it will speculate at most one instruction. It also will not speculate if
|
||||||
|
// there is a value defined in the if-block that is only used in the then-block.
|
||||||
|
// These restrictions make sense since the speculation in SimplifyCFG seems
|
||||||
|
// aimed at introducing cheap selects, while this pass is intended to do more
|
||||||
|
// aggressive speculation while counting on later passes to either capitalize on
|
||||||
|
// that or clean it up.
|
||||||
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include "llvm/ADT/SmallSet.h"
|
#include "llvm/ADT/SmallSet.h"
|
||||||
|
Reference in New Issue
Block a user