[PATCH] D60504: NFC: Improve pattern matching in computeKnownBitsFromAssume.
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 10 04:48:17 PDT 2019
sdesmalen created this revision.
sdesmalen added reviewers: nikic, spatel, craig.topper, mkazantsev.
This patch changes the order of pattern matching by first testing
a compare instruction's predicate, before doing the pattern
match for the whole expression tree. This has a positive impact
on compilation cost.
Patch by Paul Walker.
https://reviews.llvm.org/D60504
Files:
lib/Analysis/ValueTracking.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60504.194477.patch
Type: text/x-patch
Size: 22753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190410/895f10ea/attachment.bin>
More information about the llvm-commits
mailing list