[llvm] 7c2f93c - [InstCombine] use isa instead of dyn_cast for unused value; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 24 14:58:34 PDT 2022
Author: Sanjay Patel
Date: 2022-08-24T17:58:20-04:00
New Revision: 7c2f93c04a48a80a8ffb377de178c8577d597ee3
URL: https://github.com/llvm/llvm-project/commit/7c2f93c04a48a80a8ffb377de178c8577d597ee3
DIFF: https://github.com/llvm/llvm-project/commit/7c2f93c04a48a80a8ffb377de178c8577d597ee3.diff
LOG: [InstCombine] use isa instead of dyn_cast for unused value; NFC
Added:
Modified:
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
index 07f8c689acf1..80733cd043ed 100644
--- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -693,7 +693,7 @@ Value *InstCombinerImpl::tryFactorization(BinaryOperator &I,
RetVal->takeName(&I);
// Try to add no-overflow flags to the final value.
- if (auto *OBO = dyn_cast<OverflowingBinaryOperator>(RetVal)) {
+ if (isa<OverflowingBinaryOperator>(RetVal)) {
bool HasNSW = false;
bool HasNUW = false;
if (isa<OverflowingBinaryOperator>(&I)) {
More information about the llvm-commits
mailing list