This is an archive of the discontinued LLVM Phabricator instance.

[ConstantExpr] Remove fneg expression
ClosedPublic

Authored by nikic on Sep 7 2022, 5:24 AM.

Details

Summary

As part of https://discourse.llvm.org/t/rfc-remove-most-constant-expressions/63179, this removes the fneg constant expression (which is, incidentally, the only unary operator expression).

Diff Detail

Event Timeline

nikic created this revision.Sep 7 2022, 5:24 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: hiraditya. · View Herald Transcript
nikic requested review of this revision.Sep 7 2022, 5:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 7 2022, 5:24 AM
reames accepted this revision.Sep 7 2022, 8:33 AM

LGTM w/minor comment.

llvm/lib/Bitcode/Reader/BitcodeReader.cpp
1396

Using a switch here looks odd as opposed to an early return if.

This revision is now accepted and ready to land.Sep 7 2022, 8:33 AM
This revision was landed with ongoing or failed builds.Sep 8 2022, 1:25 AM
This revision was automatically updated to reflect the committed changes.