[InstCombine] NFC: Add implied condition to block in foldSelectInstWithICmp
authorSander de Smalen <sander.desmalen@arm.com>
Thu, 23 Feb 2023 15:29:51 +0000 (15:29 +0000)
committerSander de Smalen <sander.desmalen@arm.com>
Thu, 23 Feb 2023 16:11:00 +0000 (16:11 +0000)
commit68b56e3a74706b1a63a38b8f45c50b10c82ba640
tree470f061d02c50244f290826da90990e8568e50f1
parentbd56c8d5f59a22b6c0ab64328b87d831a0c4468c
[InstCombine] NFC: Add implied condition to block in foldSelectInstWithICmp

Added the condition 'TrueVal->getType()->isIntOrIntVectorTy' to a block of code
in foldSelectInstWithICmp which is only valid if the TrueVal is integer type.

This change was split off from D136861.
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp