[LICM] Only forget loop/block dispositions
authorNikita Popov <npopov@redhat.com>
Tue, 25 Apr 2023 07:57:39 +0000 (09:57 +0200)
committerNikita Popov <npopov@redhat.com>
Tue, 25 Apr 2023 07:58:31 +0000 (09:58 +0200)
commita1ddfb60da108acd3adb18f8e50901739edea3c7
treefb6f35c38783ed4747693c0bb169b964cfe60b29
parentc8d1388e6c8bd57299d5801f170719218f735c4c
[LICM] Only forget loop/block dispositions

As we are moving the instruction without changing its value, it
is sufficient to only invalidate the loop/block dispositions.
This is the same we do in LoopSink.
llvm/lib/Transforms/Scalar/LICM.cpp