[PATCH] CodeGen: Minor cleanup/simplification in CGStmt
Justin Bogner
mail at justinbogner.com
Wed Oct 30 14:08:03 PDT 2013
Rafael EspĂndola <rafael.espindola at gmail.com> writes:
> The comment in EmitBranchOnBoolExpr says: "Based on the condition,
> this might try to simplify the codegen of the conditional based on the
> branch.". Can we add a testcase where such an optimization is present?
That seems like a good idea, but I need some input on where such a test
would go and how to structure it. I don't really see any similar tests.
>From what I can see, EmitBranchOnBoolExpr is basically doing some
trivial constant folding so that our codegen at -O0 is reasonable.
More information about the cfe-commits
mailing list