Return true if a load and a subsequent extend can be combined into a single extending load.
Declared in <llvm/CodeGen/TargetLowering.h>
bool
isExtLoad(
LoadInst const* Load,
Instruction const* Ext,
DataLayout const& DL) const;
Return true if Load and Ext can form an ExtLoad. For example, in AArch64 %L = load i8, i8* %ptr %E = zext i8 %L to i32 can be lowered into one load instruction ldrb w0, [x0]
True if a load and a subsequent extend can be combined into a single extending load.
| Name | Description |
|---|---|
| Load | Load instruction or SDNode being queried. |
| Ext | Extension instruction paired with the load. |
| DL | Debug location or data layout, depending on context. |