[DAGCombiner] limit ftrunc optimizations with function attribute
authorSanjay Patel <spatel@rotateright.com>
Thu, 26 Apr 2018 16:04:44 +0000 (16:04 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 26 Apr 2018 16:04:44 +0000 (16:04 +0000)
commit5a90285bd98d20cd40edd776b54e13df47431485
treea059bf33d087f12ba8c550e1d12b9794e0884b0b
parent99a5f396d4a7d81a3f5b480c3eb682c583cb7ac6
[DAGCombiner] limit ftrunc optimizations with function attribute

As noted, the attribute name is subject to change once we have
the clang side implemented, but it's clear that we need some
kind of attribute-based predication here based on the discussion
for:
rL330437

llvm-svn: 330951
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/ftrunc.ll