Commit b14d3441 authored by Craig Topper's avatar Craig Topper
Browse files

[GISel] Make the PartialMapping and ValueMapping constructors constexpr.

Backends contain static tables of PartialMapping and ValueMapping.
Without the constexpr, the initial code from the frontend contains
a global constructor to construct each entry of the table. The clang
optimizer is able to optimize the constructors away, but gcc 8 is not
able to.

Using constexpr allows the tables to be created directly in the
frontend without requiring optimizations to be performed.
parent c7b3b71a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment