[PATCH] D35594: [GISel]: ConstantFold operations when building MIR
Quentin Colombet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 28 15:24:09 PDT 2017
qcolombet added a comment.
> Disabled constant folding cast instructions as MIR currently doesn't infer legality of constants of type that it creates.
Would it make sense to have a mode in the builder where combines are allow or not, just not type changes?
What I am thinking is every pass before legalization would run in combine mode and every pass after would run in non-combine mode.
https://reviews.llvm.org/D35594
More information about the llvm-commits
mailing list