https://bugs.llvm.org/show_bug.cgi?id=43251

            Bug ID: 43251
           Summary: [InstCombine] Failure to simplify
                    usub.with.overflow+null check of non-null base pointer
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Again comes up in https://reviews.llvm.org/D67122
for 

char* test(char& base, unsigned long offset) {
  return &base - offset;
}

We produce 

https://godbolt.org/z/luGEju

and fail to simplify further, but we can:

https://rise4fun.com/Alive/Ppo

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to