[PATCH] D30184: [IR] Add a Instruction::dropPoisonGeneratingFlags helper
David Majnemer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 20 22:24:45 PST 2017
majnemer added inline comments.
================
Comment at: lib/IR/Instruction.cpp:126
+void Instruction::dropPoisonGeneratingFlags() {
+ switch (getOpcode()) {
+ case Instruction::Add:
----------------
What about the FP operations?
================
Comment at: lib/IR/Instruction.cpp:143
+ case Instruction::GetElementPtr:
+ cast<GetElementPtrInst>(this)->setIsInBounds(false);
+ break;
----------------
What about `inrange`?
https://reviews.llvm.org/D30184
More information about the llvm-commits
mailing list