[PATCH] D19353: [GVN] Replace an inverted comparison with a logical not

Geoff Berry via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 21 11:00:13 PDT 2016


gberry added a comment.

@reames I believe CodeGenPrepare::SinkCmpExpressions already takes care of this.

@mcrosier I would guess that any cond branches that have not(c) as their condition would get simplified to use just 'c' and swap the branch targets, so I don't think this would impact the optimizations you mentioned.


http://reviews.llvm.org/D19353





More information about the llvm-commits mailing list