Skip to content
  • Manman Ren's avatar
    X86 Peephole: fix PR13475 in optimizeCompare. · 32367c06
    Manman Ren authored
    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
    32367c06
Loading