[PATCH] D40055: [SelectionDAG][X86] Explicitly store the scale in the gather/scatter ISD nodes

Zvi Rackover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 10 04:32:29 PST 2018


zvi added inline comments.


================
Comment at: lib/Target/X86/X86ISelDAGToDAG.cpp:1533
   AM.Scale = Mgs->getValue().getScalarValueSizeInBits() / 8;
+  AM.Scale = cast<ConstantSDNode>(Mgs->getScale())->getZExtValue();
 
----------------
Remove the line above?


https://reviews.llvm.org/D40055





More information about the llvm-commits mailing list