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.
Paths
| Differential D63384
[ConstantFolding] Refactor ConstantFoldScalarCall. NFC ClosedPublic Authored by bjope on Jun 16 2019, 8:22 AM.
Details
Summary This patch splits ConstantFoldScalarCall into several Benefits:
Diff Detail
Event Timelinebjope added a child revision: D63385: [ConstantFolding] Add constant folding for smul.fix and smul.fix.sat.Jun 16 2019, 8:25 AM This revision is now accepted and ready to land.Jun 19 2019, 9:40 AM
Revision Contents
Diff 204948 llvm/lib/Analysis/ConstantFolding.cpp
|