[InstCombine] Avoid ConstantExpr::get()
authorNikita Popov <npopov@redhat.com>
Thu, 20 Jul 2023 13:21:19 +0000 (15:21 +0200)
committerNikita Popov <npopov@redhat.com>
Thu, 20 Jul 2023 13:24:02 +0000 (15:24 +0200)
commit632594fcb1c9b6a25da32a58cd7364ce02aec745
tree83137b8262286051eacabb56f76c6c03ca9f664b
parent095e69404ae8feeed32d9dc09debe77702efe7d1
[InstCombine] Avoid ConstantExpr::get()

Use ConstantFoldBinaryOpOperands() instead of ConstantExpr::get().
This will continue working with binary operands that are not
supported as constant expressions.
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp