| commit | 32367c063b1578aa29cef33736064f77ee72602e | [log] [tgz] |
|---|---|---|
| author | Manman Ren <mren@apple.com> | Sat Jul 28 03:15:46 2012 +0000 |
| committer | Manman Ren <mren@apple.com> | Sat Jul 28 03:15:46 2012 +0000 |
| tree | 326394b196fa0a1c612fb938055746e4991fe5dd | |
| parent | a83aaa0da42a4dbfa620237de01cd200109967f6 [diff] |
X86 Peephole: fix PR13475 in optimizeCompare. It is possible that an instruction can use and update EFLAGS. When checking the safety, we should check the usage of EFLAGS first before declaring it is safe to optimize due to the update. llvm-svn: 160912