[AMDGPUCodeGenPrepare] Check result of ConstantFoldBinaryOpOperands()
authorNikita Popov <npopov@redhat.com>
Mon, 4 Jul 2022 10:55:42 +0000 (12:55 +0200)
committerNikita Popov <npopov@redhat.com>
Mon, 4 Jul 2022 12:20:23 +0000 (14:20 +0200)
commit8e70258b18ba35c5940dc8fa757b5bfb2ffb51d4
tree5195fa12bcd6187c096fb07744d8dab3577e2c1f
parent4905bcac00e6588bc82e51973dcac7b7a5361c94
[AMDGPUCodeGenPrepare] Check result of ConstantFoldBinaryOpOperands()

This function will become fallible once we don't support constant
expressions for all binops, so make sure to check the result.
llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp