revert r328921 - [DAGCombine] (float)((int) f) --> ftrunc (PR36617)
authorSanjay Patel <spatel@rotateright.com>
Thu, 12 Apr 2018 15:27:01 +0000 (15:27 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 12 Apr 2018 15:27:01 +0000 (15:27 +0000)
commit5ace2b765a54e2fc7e546a60d83e97c36db05507
tree4f8b32edd62a77248ec5bf14485b7271c541908f
parent01cbd5aa686b7b50cf5b099c8a37b6ac2cfd05df
revert r328921 - [DAGCombine] (float)((int) f) --> ftrunc (PR36617)

This change is exposing UB in source code - as was warned/predicted. :)
See D44909 for discussion. Reverting while we figure out how to fix things.

llvm-svn: 329920
llvm/include/llvm/CodeGen/ISDOpcodes.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/AArch64/ftrunc.ll
llvm/test/CodeGen/ARM/ftrunc.ll [deleted file]
llvm/test/CodeGen/PowerPC/fp-int128-fp-combine.ll
llvm/test/CodeGen/PowerPC/fp-to-int-to-fp.ll
llvm/test/CodeGen/PowerPC/ftrunc-vec.ll
llvm/test/CodeGen/PowerPC/no-extra-fp-conv-ldst.ll
llvm/test/CodeGen/X86/2011-10-19-widen_vselect.ll
llvm/test/CodeGen/X86/ftrunc.ll