[llvm] [Transforms] Mirror optimizeStrRChr with optimizeStrChr (PR #77685)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 11 08:20:41 PST 2024


AtariDreams wrote:

@MaskRay So the big question is: why would we return a poison value for strrchr but not strchr? why not let them have the same undefined behavior, or defined behavior (since we are allowed by the standard to have behavior for undefined behavior). 

https://github.com/llvm/llvm-project/pull/77685


More information about the llvm-commits mailing list