Page MenuHomePhabricator

[IR] Use UnaryOperator::CreateFNeg in NoFolder::createFNeg

Authored by craig.topper on Oct 24 2019, 10:42 AM.



If IRBuilder is constructed using the NoFolder constant folder, we should use the Unary FNeg to match the non-constant part of IRBuilder.

Diff Detail

Event Timeline

craig.topper created this revision.Oct 24 2019, 10:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 24 2019, 10:42 AM
cameron.mcinally accepted this revision.Oct 28 2019, 8:19 AM

Good catch. Thanks. LGTM.

I'll volunteer to handle any regressions that result from this change...

This revision is now accepted and ready to land.Oct 28 2019, 8:19 AM
This revision was automatically updated to reflect the committed changes.