HomePhabricator

ConstantFoldInstruction: avoid wasted calls to ConstantFoldConstantExpression

Description

ConstantFoldInstruction: avoid wasted calls to ConstantFoldConstantExpression

Check to see if all operands are constant before calling simplify on them
so that we don't perform wasted simplifications.

Details

Committed
eschaMar 12 2016, 9:36 PM
Parents
rL263373: Simplify. NFC.
Branches
Unknown
Tags
Unknown