aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/TimeValueTest.cpp
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2013-07-15 23:47:29 +0000
committerManman Ren <mren@apple.com>2013-07-15 23:47:29 +0000
commitb827123cf796571f5f00d7b5a0006dd9aff3fa0e (patch)
tree9eb8e862d52023d80cd0574c4083dd6bb6d47278 /llvm/unittests/Support/TimeValueTest.cpp
parent0e016fe31b5bbd01a11e60bde1bb296843c7030b (diff)
downloadllvm-b827123cf796571f5f00d7b5a0006dd9aff3fa0e.zip
llvm-b827123cf796571f5f00d7b5a0006dd9aff3fa0e.tar.gz
llvm-b827123cf796571f5f00d7b5a0006dd9aff3fa0e.tar.bz2
PEI: Support for non-zero SPAdj at beginning of a basic block.
We can have a FrameSetup in one basic block and the matching FrameDestroy in a different basic block when we have struct byval. In that case, SPAdj is not zero at beginning of the basic block. Modify PEI to correctly set SPAdj at beginning of each basic block using DFS traversal. We used to assume SPAdj is 0 at beginning of each basic block. PEI had an assert SPAdjCount || SPAdj == 0. If we have a Destroy <n> followed by a Setup <m>, PEI will assert failure. We can add an extra condition to make sure the pairs are matched: The pairs start with a FrameSetup. But since we are doing a much better job in the verifier, this patch removes the check in PEI. PR16393 llvm-svn: 186364
Diffstat (limited to 'llvm/unittests/Support/TimeValueTest.cpp')
0 files changed, 0 insertions, 0 deletions