Skip to content
  • Jakob Stoklund Olesen's avatar
    Add an MCID::Select flag and TII hooks for optimizing selects. · 2382d320
    Jakob Stoklund Olesen authored
    Select instructions pick one of two virtual registers based on a
    condition, like x86 cmov. On targets like ARM that support predication,
    selects can sometimes be eliminated by predicating the instruction
    defining one of the operands.
    
    Teach PeepholeOptimizer to recognize select instructions, and ask the
    target to optimize them.
    
    llvm-svn: 162059
    2382d320
Loading