[llvm] [X86][ConstraintFP] Model rounding control registers for inline asm (PR #92846)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Mon May 20 23:36:29 PDT 2024
================
@@ -669,8 +669,14 @@ const MCPhysReg *X86TargetLowering::getScratchRegisters(CallingConv::ID) const {
return ScratchRegs;
}
-ArrayRef<MCPhysReg> X86TargetLowering::getRoundingControlRegisters() const {
+ArrayRef<MCPhysReg>
+X86TargetLowering::getRoundingControlRegisters(const char *AsmStr) const {
static const MCPhysReg RCRegs[] = {X86::FPCW, X86::MXCSR};
+ if (AsmStr) {
----------------
phoebewang wrote:
This is from the performance consideration. People uses inline asm for performance sometimes.
https://github.com/llvm/llvm-project/pull/92846
More information about the llvm-commits
mailing list