[llvm] r339308 - [LICM] Add an assert to ensure all instruction types needing aliasing are handled [NFC]
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 8 20:44:29 PDT 2018
Author: reames
Date: Wed Aug 8 20:44:28 2018
New Revision: 339308
URL: http://llvm.org/viewvc/llvm-project?rev=339308&view=rev
Log:
[LICM] Add an assert to ensure all instruction types needing aliasing are handled [NFC]
Modified:
llvm/trunk/lib/Transforms/Scalar/LICM.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LICM.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LICM.cpp?rev=339308&r1=339307&r2=339308&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LICM.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LICM.cpp Wed Aug 8 20:44:28 2018
@@ -686,6 +686,8 @@ bool llvm::canSinkOrHoistInst(Instructio
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;
More information about the llvm-commits
mailing list