[Attributor][FIX] Give registered simplification callbacks precedence
authorJohannes Doerfert <johannes@jdoerfert.de>
Thu, 9 Jun 2022 12:51:49 +0000 (14:51 +0200)
committerJohannes Doerfert <johannes@jdoerfert.de>
Thu, 9 Jun 2022 13:31:53 +0000 (15:31 +0200)
commitae10b8a58240598c552023437783e71e2d7ef192
treed4629deae9d510f688ad569332d4b72401973023
parent95141aa9cbb1f5f655ed84dd280ef7314b750477
[Attributor][FIX] Give registered simplification callbacks precedence

We accidentally checked for constants before we looked for registered
simplification callbacks. The latter needs to take precedence though.
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/OpenMP/spmdization_constant_prop.ll [new file with mode: 0644]