[clang] [lld] [llvm] [X86][APX] Suppress EGPR/NDD instructions for relocations (PR #136660)

Phoebe Wang via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 28 20:56:37 PDT 2025


================
@@ -242,8 +244,18 @@ static EFLAGSClobber getClobberType(const MachineInstr &MI) {
       MI.findRegisterDefOperand(X86::EFLAGS, /*TRI=*/nullptr);
   if (!FlagDef)
     return NoClobber;
-  if (FlagDef->isDead() && X86::getNFVariant(MI.getOpcode()))
+
+  if (FlagDef->isDead() && X86::getNFVariant(MI.getOpcode())) {
----------------
phoebewang wrote:

Add check to https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/X86/X86InstrInfo.cpp#L5468 too.

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


More information about the cfe-commits mailing list