aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2015-02-12 06:15:29 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2015-02-12 06:15:29 +0000
commit24433a7005835a551f3d71f61aa632db36f639b0 (patch)
tree6717b6486377a5a3c9407365a647edadf9cc6a85 /clang/lib/Frontend/InitPreprocessor.cpp
parent92ee75c0b2352b4394832cbc71d059321e8854c3 (diff)
downloadllvm-24433a7005835a551f3d71f61aa632db36f639b0.zip
llvm-24433a7005835a551f3d71f61aa632db36f639b0.tar.gz
llvm-24433a7005835a551f3d71f61aa632db36f639b0.tar.bz2
[CodeGen] Don't blindly combine (fp_round (fp_round x)) to (fp_round x).
We used to do this DAG combine, but it's not always correct: If the first fp_round isn't a value preserving truncation, it might introduce a tie in the second fp_round, that wouldn't occur in the single-step fp_round we want to fold to. In other words, double rounding isn't the same as rounding. Differential Revision: http://reviews.llvm.org/D7571 llvm-svn: 228911
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions