summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-03-16 20:11:54 +0000
committerAdrian Prantl <aprantl@apple.com>2017-03-16 20:11:54 +0000
commitfa9e84eb6d36dc2f7c9cc4ddee2c325b2580c393 (patch)
treed11402c6d68979bc983990290fec9a9f2a438727 /llvm/lib/Transforms/InstCombine/InstCombineInternal.h
parent65c402699267da3348b2a9c7bc829f9accc02806 (diff)
downloadbcm5719-llvm-fa9e84eb6d36dc2f7c9cc4ddee2c325b2580c393.tar.gz
bcm5719-llvm-fa9e84eb6d36dc2f7c9cc4ddee2c325b2580c393.zip
Revert commit r297971 because of issues reported by msan.
llvm-svn: 297982
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineInternal.h')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineInternal.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
index 0a3382e1903..0d76cdf371e 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
+++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
@@ -28,9 +28,6 @@
#include "llvm/IR/PatternMatch.h"
#include "llvm/Pass.h"
#include "llvm/Transforms/InstCombine/InstCombineWorklist.h"
-#include "llvm/Transforms/Utils/Local.h"
-#include "llvm/Support/Dwarf.h"
-#include "llvm/IR/DIBuilder.h"
#define DEBUG_TYPE "instcombine"
@@ -473,9 +470,8 @@ public:
/// methods should return the value returned by this function.
Instruction *eraseInstFromFunction(Instruction &I) {
DEBUG(dbgs() << "IC: ERASE " << I << '\n');
- assert(I.use_empty() && "Cannot erase instruction that is used!");
- salvageDebugInfo(I);
+ assert(I.use_empty() && "Cannot erase instruction that is used!");
// Make sure that we reprocess all operands now that we reduced their
// use counts.
if (I.getNumOperands() < 8) {
OpenPOWER on IntegriCloud