summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2018-06-19 08:41:34 +0000
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2018-06-19 08:41:34 +0000
commit2015a39955d7fe7ed1561b65b6a9d96bff6fc56c (patch)
tree78246a6fb30c46a0720a772196ad37920330c78f /llvm/lib/Transforms
parent20e85ba854a2069bcaf572fbaeca6c94c4cb03ad (diff)
downloadbcm5719-llvm-2015a39955d7fe7ed1561b65b6a9d96bff6fc56c.tar.gz
bcm5719-llvm-2015a39955d7fe7ed1561b65b6a9d96bff6fc56c.zip
Remove valueCoversEntireFragment asserts in ConvertDebugDeclareToDebugValue
This is a fixup for r334830 causing problems in polly-aosp buildbot. Focus in r334830 was to fix a problem seen with ConvertDebugDeclareToDebugValue involving store instructions. It also added some asserts to find out of similar problems existed for the ConvertDebugDeclareToDebugValue functions involving load and phi instructions. One of those asserts seems to blow in the polly-aosp buildbot, so I'll revert the asserts while debugging. llvm-svn: 335031
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index 3d976005cba..3a43025cb83 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -1313,9 +1313,6 @@ void llvm::ConvertDebugDeclareToDebugValue(DbgInfoIntrinsic *DII,
if (LdStHasDebugValue(DIVar, DIExpr, LI))
return;
- assert(valueCoversEntireFragment(LI->getType(), DII) &&
- "Load is not loading the full variable fragment.");
-
// We are now tracking the loaded value instead of the address. In the
// future if multi-location support is added to the IR, it might be
// preferable to keep tracking both the loaded value and the original
@@ -1336,9 +1333,6 @@ void llvm::ConvertDebugDeclareToDebugValue(DbgInfoIntrinsic *DII,
if (PhiHasDebugValue(DIVar, DIExpr, APN))
return;
- assert(valueCoversEntireFragment(APN->getType(), DII) &&
- "PHI node is not describing the full variable.");
-
BasicBlock *BB = APN->getParent();
auto InsertionPt = BB->getFirstInsertionPt();
OpenPOWER on IntegriCloud