diff --git a/llvm/lib/Target/X86/X86InstrMisc.td b/llvm/lib/Target/X86/X86InstrMisc.td index a39b8059271375..496a7e6b294362 100644 --- a/llvm/lib/Target/X86/X86InstrMisc.td +++ b/llvm/lib/Target/X86/X86InstrMisc.td @@ -1166,11 +1166,12 @@ multiclass Lzcnt o, string m, SDPatternOperator node, X86TypeInfo t, [(set t.RegClass:$dst, (node t.RegClass:$src1)), (implicit EFLAGS)]>, TB, Sched<[schedrr]>; - def rm#suffix : ITy, - TB, Sched<[schedrm]>; + let mayLoad = 1 in + def rm#suffix : ITy, + TB, Sched<[schedrm]>; } let Predicates = [HasLZCNT], Defs = [EFLAGS] in {