Skip to content

[InstCombine] Instruction sink doesn't see through sink opportunities from bb0 to bb2 in bb0->bb1->bb2 #88960

Open
@mingmingl-llvm

Description

@mingmingl-llvm

see https://gcc.godbolt.org/z/G7Paj7h37 for two test cases.

  • in function @inst_sink, the two instructions (load, icmp) in the entry block sink to the block where it is used.
  • in function @inst_not_sink, the two instructions stay in the entry block although they are used only in if.false.orig_indirect2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions