[PATCH] D86862: [NFC] [DAGCombiner] Refactor bitcast folding within fabs/fneg

Qiu Chaofan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 31 06:45:55 PDT 2020


qiucf added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:13996
 
   // (fneg (fmul c, x)) -> (fmul -c, x)
   if (N0.getOpcode() == ISD::FMUL &&
----------------
By the way, this can be removed since `getNegatedExpression` above already handles it?


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

https://reviews.llvm.org/D86862



More information about the llvm-commits mailing list