Struct to hold information about a partially invariant condition.

Synopsis

Declared in <llvm/Transforms/Utils/LoopUtils.h>

struct IVConditionInfo;

Data Members

Name

Description

ExitForPath

If the partially invariant path reaches a single exit block, ExitForPath is set to that block. Otherwise it is nullptr.

InstToDuplicate

Instructions that need to be duplicated and checked for the unswitching condition.

KnownValue

Constant to indicate for which value the condition is invariant.

PathIsNoop

True if the partially invariant path is no‐op (=does not have any side‐effects and no loop value is used outside the loop).

Non-Member Functions

Name

Description

hasPartialIVCondition

Detect a partially invariant header condition suitable for unswitching.

Created with MrDocs