[ConstraintElimination] Check if const. is small enough before using it
authorFlorian Hahn <flo@fhahn.com>
Tue, 26 Apr 2022 12:16:02 +0000 (13:16 +0100)
committerFlorian Hahn <flo@fhahn.com>
Tue, 26 Apr 2022 12:56:32 +0000 (13:56 +0100)
commitc59d95f6a47c81e0f9eae37625b6ee14022e06a2
treefaa3b05050547bbf4481178ff4380453ef3c2fbb
parentb9fc18f89acc85081ebffe1bf777c08af4474df4
[ConstraintElimination] Check if const. is small enough before using it

Check if the value of a ConstantInt is small enough to be used for
solving before calling getSExtValue.

Fixes #55085
llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
llvm/test/Transforms/ConstraintElimination/i128.ll [deleted file]
llvm/test/Transforms/ConstraintElimination/large-constant-ints.ll [new file with mode: 0644]