]> granicus.if.org Git - llvm/commit
[AArch64] Use the source location of the IR branch when creating Bcc
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Fri, 6 Feb 2015 23:15:39 +0000 (23:15 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Fri, 6 Feb 2015 23:15:39 +0000 (23:15 +0000)
commit8650883afb3d51dd787881f12b4c3f514d6c416a
treedb9052ba778ff671bf1ea215b59c043e98f7724a
parent148482dd6bf4959db5227387041249757494adf3
[AArch64] Use the source location of the IR branch when creating Bcc
from a conditional branch fed by an add/sub/mul-with-overflow node.

We previously used the SDLoc of the overflow node, for no good reason.
In some cases, this led to the Bcc and B terminators having different
source orders, and DBG_VALUEs being inserted between them.

The real issue is with the code that can't handle DBG_VALUEs between
terminators: the few places affected by this will be fixed soon.
In the meantime, fixing the SDLoc is a positive change no matter what.

No tests, as I have no idea how to get .loc emitted for branches?

rdar://19347133

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228463 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ISelLowering.cpp