[PATCH] D40334: [X86] Break false dependencies for POPCNT, LZCNT, TZCNT

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 4 15:54:11 PST 2017


craig.topper added inline comments.


================
Comment at: lib/Target/X86/X86InstrInfo.cpp:8245
+        .addReg(XReg, RegState::Undef)
+        .addReg(XReg, RegState::Undef);
+    MI.addRegisterKilled(Reg, TRI, true);
----------------
I think you need a .addreg(Reg, RegState::ImplicitDefine)   here too. See the VXORPSrr code above.


Repository:
  rL LLVM

https://reviews.llvm.org/D40334





More information about the llvm-commits mailing list