[PATCH] D62191: [SelectionDAG] define binops as a superset of commutative binops

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 21 06:24:09 PDT 2019


lebedev.ri added inline comments.


================
Comment at: llvm/include/llvm/CodeGen/TargetLowering.h:2199
   /// Returns true if the opcode is a commutative binary operation.
   virtual bool isCommutativeBinOp(unsigned Opcode) const {
     // FIXME: This should get its info from the td file.
----------------
Actually, while this patch in itself looks good, this function looks a bit scary.
FP ops are commutative, but not associative..



CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62191/new/

https://reviews.llvm.org/D62191





More information about the llvm-commits mailing list