[PATCH] D12150: Add DAG optimisation for FP16_TO_FP

Renato Golin via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 22 11:53:20 PDT 2015


rengolin added a subscriber: rengolin.
rengolin added a comment.

Apart from my comment, looks good.


================
Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:12987
@@ +12986,3 @@
+  if (N0->getOpcode() == ISD::AND) {
+    ConstantSDNode *AndConst = getAsNonOpaqueConstant(N0.getOperand(1));
+    if (AndConst && AndConst->getAPIntValue() == 0xffff) {
----------------
Is this always (op & 0xffff) or can you also have (0xffff & op)?


Repository:
  rL LLVM

http://reviews.llvm.org/D12150





More information about the llvm-commits mailing list