[PATCH] D13358: InstCombine: Fold comparisons between unguessable allocas and other pointers

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 6 16:56:55 PDT 2015


hans updated the summary for this revision.
hans updated this revision to Diff 36685.
hans added a comment.

Bail early if we hit an instruction with many uses. In particular, don't cause WorkList to get heap allocated by adding elements to it that we're not going to process anyway.

I can has lgtm?


http://reviews.llvm.org/D13358

Files:
  lib/Transforms/InstCombine/InstCombineCompares.cpp
  lib/Transforms/InstCombine/InstCombineInternal.h
  test/Transforms/InstCombine/compare-alloca.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13358.36685.patch
Type: text/x-patch
Size: 8148 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151006/08333fc7/attachment.bin>


More information about the llvm-commits mailing list