diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2016-07-28 06:39:48 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2016-07-28 06:39:48 +0000 |
| commit | 19d024b2fd930acad84fe6c33c2af93725408875 (patch) | |
| tree | 4f10a333055316a441253befc544d6040477f463 /polly/lib/CodeGen/PPCGCodeGeneration.cpp | |
| parent | 33e9521399674457e8d35e5c169af1e404bdc8ac (diff) | |
| download | bcm5719-llvm-19d024b2fd930acad84fe6c33c2af93725408875.tar.gz bcm5719-llvm-19d024b2fd930acad84fe6c33c2af93725408875.zip | |
[ConstantFolding] Don't bail on folding if ConstantFoldConstantExpression fails
When folding an expression, we run ConstantFoldConstantExpression on
each operand of that expression.
However, ConstantFoldConstantExpression can fail and retur nullptr.
Previously, we would bail on further refining the expression.
Instead, use the original operand and see if we can refine a later
operand.
llvm-svn: 276959
Diffstat (limited to 'polly/lib/CodeGen/PPCGCodeGeneration.cpp')
0 files changed, 0 insertions, 0 deletions

