summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2012-04-10 01:51:00 +0000
committerEvan Cheng <evan.cheng@apple.com>2012-04-10 01:51:00 +0000
commitf8bad0800103edc86b61c5763aa72412b4f5b49a (patch)
tree5498e43eb0910ec5088b17514f30ba38db4bab78 /llvm/lib/Object/COFFObjectFile.cpp
parent7bdcc4a9da8ccbafb15872083f551366cdaf3b51 (diff)
downloadbcm5719-llvm-f8bad0800103edc86b61c5763aa72412b4f5b49a.tar.gz
bcm5719-llvm-f8bad0800103edc86b61c5763aa72412b4f5b49a.zip
Fix a long standing tail call optimization bug. When a libcall is emitted
legalizer always use the DAG entry node. This is wrong when the libcall is emitted as a tail call since it effectively folds the return node. If the return node's input chain is not the entry (i.e. call, load, or store) use that as the tail call input chain. PR12419 rdar://9770785 rdar://11195178 llvm-svn: 154370
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud