diff options
author | Amara Emerson <amara@apple.com> | 2022-07-14 00:53:59 -0700 |
---|---|---|
committer | Amara Emerson <amara@apple.com> | 2022-07-14 11:05:10 -0700 |
commit | d4f84df0a008b13d0e8440aec1d63651b7520923 (patch) | |
tree | 5d3755e69c63e15d13dccda246287377c16563b8 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 0a92e0728c8c5b6b36adff6ebaa2b8cddd44298c (diff) | |
download | llvm-d4f84df0a008b13d0e8440aec1d63651b7520923.zip llvm-d4f84df0a008b13d0e8440aec1d63651b7520923.tar.gz llvm-d4f84df0a008b13d0e8440aec1d63651b7520923.tar.bz2 |
[GlobalISel] Change widenScalar of G_FCONSTANT to mutate into G_CONSTANT.
Widening a G_FCONSTANT by extending and then generating G_FPTRUNC doesn't produce
the same result all the time. Instead, we can just transform it to a G_CONSTANT
of the same bit pattern and truncate using a plain G_TRUNC instead.
Fixes https://github.com/llvm/llvm-project/issues/56454
Differential Revision: https://reviews.llvm.org/D129743
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions