Returns true if Reg can create undef or poison from non-undef & non-poison operands. ConsiderFlagsAndMetadata controls whether poison producing flags and metadata on the instruction are considered. This can be used to see if the instruction could still introduce undef or poison even without poison generating flags and metadata which might be on the instruction.
Declared in <llvm/CodeGen/GlobalISel/Utils.h>
bool
canCreateUndefOrPoison(
Register Reg,
MachineRegisterInfo const& MRI,
bool ConsiderFlagsAndMetadata = true);
| Name | Description |
|---|---|
| Reg | Wrapper class representing virtual and physical registers. Should be passed by value. |
| MRI | MachineRegisterInfo - Keep track of information for virtual and physical registers, including vreg register classes, use/def chains for registers, etc. |