diff options
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2015-08-13 01:32:30 +0000 |
---|---|---|
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2015-08-13 01:32:30 +0000 |
commit | a196661bb094be4b3a0a272c0e5d85d92ea767c1 (patch) | |
tree | 148ba9a22c6e581dcc2456b789731a6bbef58dc9 /clang/lib/Frontend/CompilerInstance.cpp | |
parent | b2a9ed910e2f12bf64499bb3e31a5b094e82cfea (diff) | |
download | llvm-a196661bb094be4b3a0a272c0e5d85d92ea767c1.zip llvm-a196661bb094be4b3a0a272c0e5d85d92ea767c1.tar.gz llvm-a196661bb094be4b3a0a272c0e5d85d92ea767c1.tar.bz2 |
[CodeGen] Mark the promoted FCOPYSIGN result FP_ROUND as TRUNCating.
Now that we can properly promote mismatched FCOPYSIGNs (r244858), we
can mark the FP_ROUND on the result as truncating, to expose folding.
FCOPYSIGN doesn't change anything but the sign bit, so
(fp_round (fcopysign (fpext a), b))
is equivalent to (modulo the sign bit):
(fp_round (fpext a))
which is a no-op.
llvm-svn: 244862
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
0 files changed, 0 insertions, 0 deletions