summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2018-08-09 03:44:28 +0000
committerPhilip Reames <listmail@philipreames.com>2018-08-09 03:44:28 +0000
commit22b20a09a08baba62f69f19e65c79b59f15cb0e0 (patch)
treec0d8af6579e40a035418ba635a540ede3a54312d /llvm/lib/Transforms
parenteb46c95c3e7aeba4d183ca614fe238067eddf97f (diff)
downloadbcm5719-llvm-22b20a09a08baba62f69f19e65c79b59f15cb0e0.tar.gz
bcm5719-llvm-22b20a09a08baba62f69f19e65c79b59f15cb0e0.zip
[LICM] Add an assert to ensure all instruction types needing aliasing are handled [NFC]
llvm-svn: 339308
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/LICM.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp
index 1cbe3ef10a0..d4ef9ade6f3 100644
--- a/llvm/lib/Transforms/Scalar/LICM.cpp
+++ b/llvm/lib/Transforms/Scalar/LICM.cpp
@@ -686,6 +686,8 @@ bool llvm::canSinkOrHoistInst(Instruction &I, AAResults *AA, DominatorTree *DT,
return false;
}
+ assert(!I.mayReadOrWriteMemory() && "unhandled aliasing");
+
// We've established mechanical ability and aliasing, it's up to the caller
// to check fault safety
return true;
OpenPOWER on IntegriCloud