[PATCH] D30104: Refactor instruction simplification code in visitors. NFC.
Easwaran Raman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 17 10:44:40 PST 2017
eraman created this revision.
Several visitors check if operands to the instruction are constants, either as it is or after looking up SimplifiedValues, check if the result is a constant and update the SimplifiedValues map. This refactoring splits it into a common function that does the checking of whether the operands are constants and updating of the SimplifiedValues table, and an instruction specific part that is implemented by each instruction visitor as a lambda and passed to the common function.
https://reviews.llvm.org/D30104
Files:
lib/Analysis/InlineCost.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30104.88920.patch
Type: text/x-patch
Size: 8688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170217/2badc3e9/attachment.bin>
More information about the llvm-commits
mailing list