Fix for the case that was missing where we create 2 VPT blocks predicated on the same VCMP instruction that can be folded. The problem was that for each VPT block, we save the predicate statement to a list so that we can remove them all later in one go, but the same instruction was added twice. Thus, we were running in an assert trying to remove the same instruction twice. To avoid this, the instructions are now saved to a set.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Just added a comment for clarity saying that the IR function was intentionally left empty in the MIR test (the offending MIR sequence was extracted from a larger reproducer, and there's no need to copy the corresponding IR).