[PATCH] D37559: [X86FixupBWInsts] More presise register liveness if no <imp-use> on MOVs.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 13 20:33:46 PDT 2017


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/X86/X86FixupBWInsts.cpp:220
+  for (auto &MO: MI.implicit_operands()) {
+    if (!MO.isReg() || (!MO.isDef() && !MO.isUse()))
+      continue;
----------------
I don't think the isDef and isUse check is necessary. An operand is either a use or a def. There's no third state.


https://reviews.llvm.org/D37559





More information about the llvm-commits mailing list