[PATCH] D102711: [GlobalOpt] Handle null check with global pointer variables

Shimin Cui via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 14 13:16:02 PDT 2021


scui updated this revision to Diff 358713.
scui added a comment.

Add two test cases - one is to test the icmp condition with non-null value, the other is to test the disablement of the sinking of load to the icmp location.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102711/new/

https://reviews.llvm.org/D102711

Files:
  llvm/lib/Transforms/IPO/GlobalOpt.cpp
  llvm/test/Transforms/GlobalOpt/malloc-promote-4.ll
  llvm/test/Transforms/GlobalOpt/null-check-is-use-pr35760.ll
  llvm/test/Transforms/GlobalOpt/null-check-not-use-pr35760.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102711.358713.patch
Type: text/x-patch
Size: 7582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210714/3e6ccf7a/attachment.bin>


More information about the llvm-commits mailing list