[llvm] r214627 - [x86] Switch to using the variable we extracted this operand into.

Chandler Carruth chandlerc at gmail.com
Sat Aug 2 03:29:36 PDT 2014


Author: chandlerc
Date: Sat Aug  2 05:29:36 2014
New Revision: 214627

URL: http://llvm.org/viewvc/llvm-project?rev=214627&view=rev
Log:
[x86] Switch to using the variable we extracted this operand into.

Spotted this missed refactoring by inspection when reading code, and it
doesn't changethe functionality at all.

Modified:
    llvm/trunk/lib/Target/X86/X86MCInstLower.cpp

Modified: llvm/trunk/lib/Target/X86/X86MCInstLower.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86MCInstLower.cpp?rev=214627&r1=214626&r2=214627&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86MCInstLower.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86MCInstLower.cpp Sat Aug  2 05:29:36 2014
@@ -999,7 +999,7 @@ void X86AsmPrinter::EmitInstruction(cons
       ArrayRef<MachineConstantPoolEntry> Constants =
           MI->getParent()->getParent()->getConstantPool()->getConstants();
       const MachineConstantPoolEntry &MaskConstantEntry =
-          Constants[MI->getOperand(5).getIndex()];
+          Constants[MaskOp.getIndex()];
       Type *MaskTy = MaskConstantEntry.getType();
       (void)MaskTy;
       if (!MaskConstantEntry.isMachineConstantPoolEntry())





More information about the llvm-commits mailing list