diff options
author | Sanjay Patel <spatel@rotateright.com> | 2018-03-31 17:55:44 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2018-03-31 17:55:44 +0000 |
commit | 6124cae8f7656c9c75941dc2f480404dde491200 (patch) | |
tree | 20e16aa484d0322e55dd90f3316e1dc27a509c12 /llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp | |
parent | 9c755450efeed58364c8bd44d17992928f3e4da7 (diff) | |
download | llvm-6124cae8f7656c9c75941dc2f480404dde491200.zip llvm-6124cae8f7656c9c75941dc2f480404dde491200.tar.gz llvm-6124cae8f7656c9c75941dc2f480404dde491200.tar.bz2 |
[DAGCombine] (float)((int) f) --> ftrunc (PR36617)
fptosi / fptoui round towards zero, and that's the same behavior as ISD::FTRUNC,
so replace a pair of casts with the equivalent node. We don't have to account for
special cases (NaN, INF) because out-of-range casts are undefined.
Differential Revision: https://reviews.llvm.org/D44909
llvm-svn: 328921
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp')
0 files changed, 0 insertions, 0 deletions