HomePhabricator

ConstantFoldInstruction: avoid wasted calls to ConstantFoldConstantExpression

Authored by escha on Mar 12 2016, 9:36 PM.

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.

llvm-svn: 263374

Details

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