[PATCH] D49602: Use SCEV to avoid inserting some bounds checks.

Joel Galenson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 20 08:23:20 PDT 2018


jgalenson created this revision.
jgalenson added reviewers: eugenis, efriedma.
Herald added subscribers: llvm-commits, javed.absar.

This patch uses SCEV to avoid inserting some bounds checks when they are not needed.  This slightly improves the performance of code compiled with the bounds check sanitizer.

This approach was suggested in https://reviews.llvm.org/D49492.


Repository:
  rL LLVM

https://reviews.llvm.org/D49602

Files:
  lib/Transforms/Instrumentation/BoundsChecking.cpp
  test/Instrumentation/BoundsChecking/opt.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49602.156492.patch
Type: text/x-patch
Size: 17493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180720/8b5c48d4/attachment-0001.bin>


More information about the llvm-commits mailing list