[PATCH] D56242: Elevate instructions across if-else blocks for better constant propagation

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 9 18:42:35 PST 2019


efriedma added a comment.

Please include a few simpler testcases, so it's more obvious what the pass actually does.  As far as I can tell, this is similar to InstCombiner::foldOpIntoPhi, but it's a lot more aggressive?

It looks like this increases codesize, in general; do we need some limit to prevent codesize from exploding in general?  Should that limit depend on optsize?



================
Comment at: test/Transforms/Elevate/elevate-if-else.ll:1
+; RUN: opt < %s -O3 -elevate -S | FileCheck %s
+
----------------
Please don't use -O3 in opt testcases.


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

https://reviews.llvm.org/D56242





More information about the llvm-commits mailing list