diff options
author | Manman Ren <mren@apple.com> | 2012-07-07 03:34:46 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2012-07-07 03:34:46 +0000 |
commit | bb36074047985cb476cadda464447b634972be2a (patch) | |
tree | e32be593d3bde94b2f762c7a1bbb5ad15632c478 /llvm/lib/CodeGen/ScoreboardHazardRecognizer.cpp | |
parent | 80eb0c502d52515dff02bbe17ebd9938fa657cf8 (diff) | |
download | bcm5719-llvm-bb36074047985cb476cadda464447b634972be2a.tar.gz bcm5719-llvm-bb36074047985cb476cadda464447b634972be2a.zip |
X86: Fix optimizeCompare to correctly check safe condition.
It is safe if EFLAGS is killed or re-defined.
When we are done with the basic block, check whether EFLAGS is live-out.
Do not optimize away cmp if EFLAGS is live-out.
llvm-svn: 159888
Diffstat (limited to 'llvm/lib/CodeGen/ScoreboardHazardRecognizer.cpp')
0 files changed, 0 insertions, 0 deletions