Skip to content

[InstructionSimplify] The result of icmp should be false. #69333

@dianqk

Description

@dianqk

I tried this IR:

define i1 @src(i32 %X, i32 %Y, i32 %Z) {
  %A = lshr i32 %X, %Y
  %B = or i32 %X, %Z
  %C = icmp ult i32 %B, %A
  ret i1 %C
}

InstructionSimplify should infer that %C is false.
Alive2: https://alive2.llvm.org/ce/z/HvK2Ps

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions