[llvm] [InstCombine] Add cast support in simplifyUsingControlFlow (PR #142263)
Andreas Jonson via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 19 13:12:34 PDT 2025
================
@@ -1301,6 +1301,7 @@ static Value *simplifyUsingControlFlow(InstCombiner &Self, PHINode &PN,
// Determine which value the condition of the idom has for which successor.
LLVMContext &Context = PN.getContext();
+ unsigned PNBitWidth = PN.getType()->getScalarSizeInBits();
----------------
andjo403 wrote:
nice catch have added a early bail out if the phi node is not a integer type
https://github.com/llvm/llvm-project/pull/142263
More information about the llvm-commits
mailing list