[InstCombine] `sinkNotIntoOtherHandOfLogicalOp()`: don't forget to re-set insert...
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 19 Dec 2022 02:17:03 +0000 (05:17 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 19 Dec 2022 02:17:03 +0000 (05:17 +0300)
commit3ae00753c156d70b3e7000451ac71391241ac5dd
tree80dad7967a097c7d5a9f240d87daaa81cf6f92b5
parent6adeec881a830c91d42077b9f4665531003143b1
[InstCombine] `sinkNotIntoOtherHandOfLogicalOp()`: don't forget to re-set insert position

Several bots are unhappy, and this appears to be the reason:
we might be inserting into wrong basic block,
one that does not dominate the I.
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/test/Transforms/InstCombine/sink-not-into-another-hand-of-and.ll
llvm/test/Transforms/InstCombine/sink-not-into-another-hand-of-logical-and.ll
llvm/test/Transforms/InstCombine/sink-not-into-another-hand-of-logical-or.ll
llvm/test/Transforms/InstCombine/sink-not-into-another-hand-of-or.ll