summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-10-25 09:26:43 +0000
committerDuncan Sands <baldrick@free.fr>2011-10-25 09:26:43 +0000
commit805c5b92c86fc1e64b8dd26d790b293032e5cf29 (patch)
treef344cb61780a25066b530f592d0a451069a8a0a0 /llvm/lib/Object/MachOObjectFile.cpp
parent2ab33d28a84fe0ab60f472d8b68911b52cb5f1ae (diff)
downloadbcm5719-llvm-805c5b92c86fc1e64b8dd26d790b293032e5cf29.tar.gz
bcm5719-llvm-805c5b92c86fc1e64b8dd26d790b293032e5cf29.zip
Speculatively revert commits 142790 and 142843 to see if it fixes
the dragonegg and llvm-gcc self-host buildbots. Original commit messages: - Reapply r142781 with fix. Original message: Enhance SCEV's brute force loop analysis to handle multiple PHI nodes in the loop header when computing the trip count. With this, we now constant evaluate: struct ListNode { const struct ListNode *next; int i; }; static const struct ListNode node1 = {0, 1}; static const struct ListNode node2 = {&node1, 2}; static const struct ListNode node3 = {&node2, 3}; int test() { int sum = 0; for (const struct ListNode *n = &node3; n != 0; n = n->next) sum += n->i; return sum; } - Now that we look at all the header PHIs, we need to consider all the header PHIs when deciding that the loop has stopped evolving. Fixes miscompile in the gcc torture testsuite! llvm-svn: 142916
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud