[llvm] [X86][ConstraintFP] Model rounding control registers for inline asm (PR #92846)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Tue May 21 21:04:42 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:

No strong objections, removed.

https://github.com/llvm/llvm-project/pull/92846


More information about the llvm-commits mailing list