[PATCH] D32680: [X86] Apply the new instruction's register classes constraints on the operands of the replaced instruction when memory folding

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 30 10:35:52 PDT 2017


RKSimon added inline comments.


================
Comment at: lib/Target/X86/X86InstrInfo.cpp:7713
+  // Apply the new instruction's register classes constraints.
+  for (unsigned i = 0; i < MOs.size(); i++) {
+    const MCOperandInfo &OpInfo = NewMI->getDesc().OpInfo[i];
----------------
for (unsigned i = 0, e = MOs.size(); i < e; i++) {



https://reviews.llvm.org/D32680





More information about the llvm-commits mailing list