[PATCH] D11324: [PM/AA] Replace the only use of the AliasAnalysis::deleteValue API (in GlobalsModRef) with CallbackVHs that trigger the same behavior.

Chandler Carruth chandlerc at gmail.com
Sat Jul 18 02:30:08 PDT 2015


chandlerc created this revision.
chandlerc added a subscriber: llvm-commits.

This is technically more expensive, but in benchmarking some LTO runs,
it seems unlikely to even be above the noise floor. The only way I was
able to measure the performance of GMR at all was to run nothing else
but this one analysis on a linked clang bitcode file. The call graph
analysis still took 5x more time than GMR, and this change at most made
GMR 2% slower (this is well within the noise, so its hard for me to be
sure that this is an actual change). However, in a real LTO run over the
same bitcode, the GMR run takes so little time that the pass timers
don't measure it.

With this, I can remove the last update API from the AliasAnalysis
interface, but I'll actually remove the interface hook point in
a follow-up commit.

http://reviews.llvm.org/D11324

Files:
  lib/Analysis/IPA/GlobalsModRef.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11324.30076.patch
Type: text/x-patch
Size: 5594 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150718/70912f02/attachment.bin>


More information about the llvm-commits mailing list