[PATCH] D108049: [InstCombine] Extend canonicalizeClampLike to handle truncated inputs

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 16 03:16:28 PDT 2021


dmgreen added a comment.

I don't think we need freeze for the general case, just that C0 != 0 (which will pretty much always be true as `icmp ult i32 %t2, 0` isn't a very useful thing to check :) )
https://alive2.llvm.org/ce/z/VNnGSy

I'll add an explicit check for it though.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108049/new/

https://reviews.llvm.org/D108049



More information about the llvm-commits mailing list