[PATCH] D27156: Add `isRelExprOneOf` helper (alternative to D27145).

Sean Silva via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 27 20:28:28 PST 2016


silvas created this revision.
silvas added reviewers: ruiu, rafael, joerg.
silvas added a subscriber: llvm-commits.

Additionally, this uses a fast implementation to do the test, significantly reducing the amount of branching in this hot path of the relocation handling code.

      

Thanks to Joerg for suggesting this simple way to do this that should still retain most of the performance advantages of the approach in https://reviews.llvm.org/D27145.


https://reviews.llvm.org/D27156

Files:
  ELF/Relocations.cpp
  ELF/Relocations.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27156.79366.patch
Type: text/x-patch
Size: 4762 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161128/a7dc92ee/attachment.bin>


More information about the llvm-commits mailing list