aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ObjectFile.cpp
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-11-15 20:41:15 +0000
committerManman Ren <manman.ren@gmail.com>2013-11-15 20:41:15 +0000
commitbc37658a7fa14ad6476cd85c12374ab669f41376 (patch)
tree1e8007761e811f3ed967721a7f218ef1a3439060 /llvm/lib/Object/ObjectFile.cpp
parent7874bdc6c1429b11cbb6d7e38e884f25264260fb (diff)
downloadllvm-bc37658a7fa14ad6476cd85c12374ab669f41376.zip
llvm-bc37658a7fa14ad6476cd85c12374ab669f41376.tar.gz
llvm-bc37658a7fa14ad6476cd85c12374ab669f41376.tar.bz2
ArgumentPromotion: correctly transfer TBAA tags and alignments.
We used to use std::map<IndicesVector, LoadInst*> for OriginalLoads, and when we try to promote two arguments, they will both write to OriginalLoads causing created loads for the two arguments to have the same original load. And the same tbaa tag and alignment will be put to the created loads for the two arguments. The fix is to use std::map<std::pair<Argument*, IndicesVector>, LoadInst*> for OriginalLoads, so each Argument will write to different parts of the map. PR17906 llvm-svn: 194846
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions