[llvm] [CodeGen] Make LoadExtActions address-space aware (PR #162407)
Demetrius Kanios via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 25 09:48:04 PST 2025
================
@@ -1243,10 +1243,32 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
EVT ExtVT = EVT::getEVT(Dst);
EVT LoadVT = EVT::getEVT(Src);
unsigned LType =
- ((Opcode == Instruction::ZExt) ? ISD::ZEXTLOAD : ISD::SEXTLOAD);
- if (DstLT.first == SrcLT.first &&
- TLI->isLoadExtLegal(LType, ExtVT, LoadVT))
- return 0;
+ ((Opcode == Instruction::ZExt) ? ISD::ZEXTLOAD : ISD::SEXTLOAD);
+
+ if (I) {
----------------
QuantumSegfault wrote:
Avoiding touching TTI would require providing some default value for address space for the modified `isLoadExtLegal` (or plugging in a dummy zero in this spot?). I wanted to fix all uses in one go.
https://github.com/llvm/llvm-project/pull/162407
More information about the llvm-commits
mailing list