llvm-project/llvm/tools/llvm-reduce
Fraser Cormack bb3f99cd85 [llvm-reduce] Fix crash when reducing integer vectors to 1
Integer vectors were previously ignored when reducing operands. When
6b8bd0f72 introduced support for reducing floating-point
scalars/vectors, the vector case was written to only handle
floating-point values. It would crash when creating an invalid
ConstantFP from the integer element type.

Instead of reinstating the old integer vector behaviour, we might as
well reduce integer vectors to all-one splats.

A couple of existing tests has also been renamed from "remove" to
"reduce" to better reflect the deltas they test.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D129629
2022-07-13 16:56:55 +01:00
..
deltas [llvm-reduce] Fix crash when reducing integer vectors to 1 2022-07-13 16:56:55 +01:00
CMakeLists.txt [llvm-reduce] Add support for LTO bitcode files 2022-06-30 08:58:24 -07:00
DeltaManager.cpp llvm-reduce: Handle reducing FP values to nan 2022-06-27 19:55:38 -04:00
DeltaManager.h allow llvm-reduce, if asked, to run its set of passes more than once, taking longer to finish but also potentially resulting in a smaller reduced file. 2022-01-10 22:24:23 -07:00
ReducerWorkItem.cpp [llvm-reduce] Add support for LTO bitcode files 2022-06-30 08:58:24 -07:00
ReducerWorkItem.h [llvm-reduce] Add support for LTO bitcode files 2022-06-30 08:58:24 -07:00
TestRunner.cpp [llvm-reduce] Change initialization order to fix bots. NFC 2022-06-30 09:56:47 -07:00
TestRunner.h [llvm-reduce] Add support for LTO bitcode files 2022-06-30 08:58:24 -07:00
llvm-reduce.cpp [llvm-reduce] Add support for LTO bitcode files 2022-06-30 08:58:24 -07:00