Run instruction simplification across each instruction in the function.
Declared in <llvm/Transforms/Scalar/InstSimplifyPass.h>
class InstSimplifyPass
: public OptionalPassInfoMixin<InstSimplifyPass>
Instruction simplification has useful constraints in some contexts:
It will never introduce new instructions.
There is no need to iterate to a fixed point.
Many passes use instruction simplification as a library facility, but it may also be useful (in tests and other contexts) to have access to this very restricted transform at a pass granularity. However, for a much more powerful and comprehensive peephole optimization engine, see the instcombine pass instead.
| Name | Description |
|---|---|
OptionalPassInfoMixin<InstSimplifyPass> | A CRTP mix-in for passes that can be skipped. |
| Name | Description |
|---|---|
run | Run instruction simplification over the function. |
| Name | Description |
|---|---|
isRequired | Return false; optional passes may be skipped. |