-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[RISCV] Remove remapping Zfinx register classes to GPR class in getRegForInlineAsmConstraint. #164352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…gForInlineAsmConstraint. The codegen for Zfinx has been supported. So we don't need to remap Zfinx register classes to GPR class.
|
@llvm/pr-subscribers-backend-risc-v Author: Jim Lin (tclin914) ChangesThe codegen for Zfinx has been supported. So we don't need to remap Zfinx register classes to GPR class. Full diff: https://github.com/llvm/llvm-project/pull/164352.diff 1 Files Affected:
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index 169465e18f103..adc50871bdf9c 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -24047,18 +24047,7 @@ RISCVTargetLowering::getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI,
}
}
- std::pair<Register, const TargetRegisterClass *> Res =
- TargetLowering::getRegForInlineAsmConstraint(TRI, Constraint, VT);
-
- // If we picked one of the Zfinx register classes, remap it to the GPR class.
- // FIXME: When Zfinx is supported in CodeGen this will need to take the
- // Subtarget into account.
- if (Res.second == &RISCV::GPRF16RegClass ||
- Res.second == &RISCV::GPRF32RegClass ||
- Res.second == &RISCV::GPRPairRegClass)
- return std::make_pair(Res.first, &RISCV::GPRRegClass);
-
- return Res;
+ return TargetLowering::getRegForInlineAsmConstraint(TRI, Constraint, VT);
}
InlineAsm::ConstraintCode
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/13339 Here is the relevant piece of the build log for the reference |
…gForInlineAsmConstraint. (llvm#164352) The codegen for Zfinx has been supported. So we don't need to remap Zfinx register classes to GPR class.
…gForInlineAsmConstraint. (llvm#164352) The codegen for Zfinx has been supported. So we don't need to remap Zfinx register classes to GPR class.
The codegen for Zfinx has been supported. So we don't need to remap Zfinx register classes to GPR class.