[PATCH] D12596: Fix for bootstrap bug introduced in r244921

hfinkel@anl.gov via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 25 13:35:30 PDT 2015


hfinkel added inline comments.

================
Comment at: lib/Target/PowerPC/PPCISelDAGToDAG.cpp:2791
@@ -2783,2 +2790,3 @@
       if (Op1 == Op2 && DM[0] == 0 && DM[1] == 0 &&
           Op1.getOpcode() == ISD::SCALAR_TO_VECTOR &&
+          isa<LoadSDNode>(Op1.getOperand(0)) &&
----------------
Also, is this optimization missing some hasOneUse() checks? It seems like we might need to make sure that the load and the scalar_to_vector have no other uses.


Repository:
  rL LLVM

http://reviews.llvm.org/D12596





More information about the llvm-commits mailing list