Skip to content
  • Andrew Trick's avatar
    Lower ARM adds/subs to add/sub after adding optional CPSR operand. · 924123ac
    Andrew Trick authored
    This is still a hack until we can teach tblgen to generate the
    optional CPSR operand rather than an implicit CPSR def. But the
    strangeness is now limited to the selection DAG. ADD/SUB MI's no
    longer have implicit CPSR defs, nor do we allow flag setting variants
    of these opcodes in machine code. There are several corner cases to
    consider, and getting one wrong would previously lead to nasty
    miscompilation. It's not the first time I've debugged one, so this
    time I added enough verification to ensure it won't happen again.
    
    llvm-svn: 140228
    924123ac
Loading