[PATCH] D34569: [DAGCombine] Improve Store Merge logic to merge bitcast extracts.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 29 11:45:54 PDT 2017


RKSimon added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:12372
+          while (Val.getValueType() != MemVT &&
+                 Val->getOpcode() == ISD::BITCAST)
+            Val = Val.getOperand(0);
----------------
Val.getOpcode()


================
Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:12798
+        // peek through bitcasts
+        while (StVal->getOpcode() == ISD::BITCAST)
+          StVal = StVal.getOperand(0);
----------------
StVal.getOpcode()


https://reviews.llvm.org/D34569





More information about the llvm-commits mailing list