Instructions to be redone only if from the same BB
authorAditya Nandakumar <aditya_nandakumar@apple.com>
Thu, 7 Jan 2016 23:22:55 +0000 (23:22 +0000)
committerAditya Nandakumar <aditya_nandakumar@apple.com>
Thu, 7 Jan 2016 23:22:55 +0000 (23:22 +0000)
commit3d7142aab4786061a5e5509b2327696582a7fe6f
tree751e5e9f6f08ddefbeab3caadc118059f37ebf4b
parentaf0132814087683ae35673d16ada93c2f024aa3b
Instructions to be redone only if from the same BB

While adding instructions(possible roots) to be redone, make sure they
are from the same basic block.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257112 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/Reassociate.cpp
test/Transforms/Reassociate/add_across_block_crash.ll [new file with mode: 0644]