llvm.org GIT mirror llvm / 4ac0e8d
Create nodes for inline asm so that we don't crash looking for the node later. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44267 91177308-0d34-0410-b5e6-96231b3b80d8 Nick Lewycky 13 years ago
2 changed file(s) with 16 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
667667 if (AllocationInst *AI = dyn_cast(&*II))
668668 ObjectNodes[AI] = NumObjects++;
669669 }
670
671 // Calls to inline asm need to be added as well because the callee isn't
672 // referenced anywhere else.
673 if (CallInst *CI = dyn_cast(&*II)) {
674 Value *Callee = CI->getCalledValue();
675 if (isa(Callee))
676 ValueNodes[Callee] = NumObjects++;
677 }
670678 }
671679 }
672680
0 ; RUN: llvm-as < %s | opt -anders-aa -disable-output
1
2 define void @x(i16 %Y) {
3 entry:
4 %tmp = call i16 asm "bswap $0", "=r,r"(i16 %Y)
5 ret void
6 }
7