DAGCombiner: don't optimise non-existant litpool load
authorTim Northover <tnorthover@apple.com>
Wed, 16 Apr 2014 09:03:09 +0000 (09:03 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 16 Apr 2014 09:03:09 +0000 (09:03 +0000)
commit7474c171e1185812655352e32d2a44339aab0250
tree531a65e3c63b04c3365c698e55fa5caa6d784384
parent8b3d82accc5b97919945c19f6c91f382888a8b29
DAGCombiner: don't optimise non-existant litpool load

This particular DAG combine is designed to kick in when both ConstantFPs will
end up being loaded via a litpool, however those nodes have a semi-legal
status, dictated by isFPImmLegal so in some cases there wouldn't have been a
litpool in the first place. Don't try to be clever in those circumstances.

Picked up while merging some AArch64 tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206365 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/AArch64/regress-f128csel-flags.ll
test/CodeGen/ARM64/fcmp-opt.ll