[PATCH] D63384: [ConstantFolding] Refactor ConstantFoldScalarCall. NFC
Bjorn Pettersson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 16 08:26:07 PDT 2019
bjope created this revision.
bjope added a reviewer: nikic.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
bjope added a child revision: D63385: [ConstantFolding] Add constant folding for smul.fix and smul.fix.sat.
This patch splits ConstantFoldScalarCall into several
functions.
Benefits:
- Reduces indentation levels and avoids long if-statements.
- Makes it easier to add support for > 3 operands.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D63384
Files:
llvm/lib/Analysis/ConstantFolding.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63384.204948.patch
Type: text/x-patch
Size: 44984 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190616/75abb1fa/attachment.bin>
More information about the llvm-commits
mailing list