[PATCH] Fix CombineToPostIndexedLoadStore in DAGCombiner.cpp

Francois de Ferriere francois.de-ferriere at st.com
Tue Apr 21 05:23:08 PDT 2015


Thanks Quentin for your review.

I have uploaded a new version of the patch, where I removed the first part of the original patch, that will be delivered as a separate patch. I also took into account your remarks, except for one point :

  I added the following code before the inner loop :
    if (Use != Op)
       continue;

With this code, the semantics remains identical to my previous commit, and I checked again this morning on our target that we need this check to avoid catching unprofitable cases. However I don't know for other targets, and on our target in most cases this does not make a big difference, so I can remove this check if you prefer.


http://reviews.llvm.org/D9107

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/ARM/automod-test.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9107.24118.patch
Type: text/x-patch
Size: 3744 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150421/dd36976d/attachment.bin>


More information about the llvm-commits mailing list