[PATCH] DAGCombiner: Continue combining if FoldConstantArithmetic() fails.
Matthias Braun
matze at braunis.de
Mon May 18 13:39:59 PDT 2015
> Ah, indeed. Shouldn't the rule be: Don't fold an opaque constant into another constant unless he result is cheap or free (in the getIntImmConst sense)?
Yes. In fact I did not bother to guard a few combines that produce a zero result, though admittedly the code does not check whether zero is an expensive constant - but I can't imagine that to be the case on any target.
Anyway I'm currently adapting the patch to ToT and will try out RKSimons suggestion which will probably simplify this a lot.
REPOSITORY
rL LLVM
http://reviews.llvm.org/D6946
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list