Scanning entire basic block may be too expensive in terms of compile time. Instead...
authorDevang Patel <dpatel@apple.com>
Mon, 2 May 2011 21:57:00 +0000 (21:57 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 2 May 2011 21:57:00 +0000 (21:57 +0000)
commit67352b3ce7110541475ed7fb335ee95954f0523a
tree19ed871eb13831e368ee195ec4c27ffcd1c25672
parentd61c40360c3acc847263c5e5184b715c17528b09
Scanning entire basic block may be too expensive in terms of compile time. Instead, just use whatever location info first non-phi instruction has.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130729 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/BasicBlockUtils.cpp