[PATCH] D16205: ValueTracking: Put DataLayout reference into the Query structure, NFC.

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 14 15:46:55 PST 2016


MatzeB created this revision.
MatzeB added reviewers: hfinkel, majnemer, sanjoy.
MatzeB added a subscriber: llvm-commits.
MatzeB set the repository for this revision to rL LLVM.

After r251146 computeKnownBits() is called multiple times for every instruction in the program, which resulted in a 3% compiletime regression. This patch tries to get some of that compiletime back by optimizing the function:

Put DataLayout reference into the Query structure.
It looks nicer and improves the compiletime of a typical
clang -O3 -emit-llvm run by ~0.6% for me.

Repository:
  rL LLVM

http://reviews.llvm.org/D16205

Files:
  lib/Analysis/ValueTracking.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16205.44940.patch
Type: text/x-patch
Size: 71914 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160114/c6ca42d3/attachment-0001.bin>


More information about the llvm-commits mailing list