aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-03-31 17:55:44 +0000
committerSanjay Patel <spatel@rotateright.com>2018-03-31 17:55:44 +0000
commit6124cae8f7656c9c75941dc2f480404dde491200 (patch)
tree20e16aa484d0322e55dd90f3316e1dc27a509c12 /llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp
parent9c755450efeed58364c8bd44d17992928f3e4da7 (diff)
downloadllvm-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