[PATCH] D35856: [InlineCost] Simplify logical 'and' and 'or' operations.

Chad Rosier via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 25 14:14:03 PDT 2017


mcrosier created this revision.
Herald added a subscriber: javed.absar.

The idea is fairly straight forward.  The primary advantage of this simplification is that it can cause parts of the CFG to become unreachable.  See the third test case as an example.

Chad


https://reviews.llvm.org/D35856

Files:
  lib/Analysis/InlineCost.cpp
  test/Transforms/Inline/AArch64/logical-and-or.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35856.108156.patch
Type: text/x-patch
Size: 4346 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170725/2442bc48/attachment.bin>


More information about the llvm-commits mailing list