[PATCH] D11566: Fix FlattenCFG to invert test when different index is encountered, and add one more operator to invert.
Jan Sjödin
jan_sjodin at yahoo.com
Tue Jul 28 09:55:41 PDT 2015
jsjodin created this revision.
jsjodin added a reviewer: llvm-commits.
This patch improves FlattenCFG so that it will invert a branch when indices do not match so that the transform can be applied in more cases. One more operator was added to do branch niversion on asl well. The old way which the branch inversion was used could actually prevent branch merging in some cases.
http://reviews.llvm.org/D11566
Files:
lib/Transforms/Utils/FlattenCFG.cpp
test/Transforms/Util/flattencfg.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11566.30831.patch
Type: text/x-patch
Size: 4855 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150728/f885b539/attachment.bin>
More information about the llvm-commits
mailing list