[llvm] [CodeGen] Make LoadExtActions address-space aware (PR #162407)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 25 09:40:31 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) {
----------------
arsenm wrote:
TTI changes probably should be beyond the scope of the initial patch
https://github.com/llvm/llvm-project/pull/162407
More information about the llvm-commits
mailing list