[PATCH] D24327: [DAGCombine] Modification of visitBR_CC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 8 06:28:55 PDT 2016


spatel added a comment.

> %2 = add %1, #const

>  br_cc cond %2, #const

>  -->

>  br_cc cond %1, 0


I don't think this transform is safe unless you have 'nsw' or 'nuw' on the add.


https://reviews.llvm.org/D24327





More information about the llvm-commits mailing list