[llvm-commits] [llvm] r95282 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Duncan Sands baldrick at free.fr
Thu Feb 4 01:38:36 PST 2010


Hi Evan,

> It's too risky to eliminate sext / zext of call results for tail call optimization even if the caller / callee attributes completely match. The callee may have been bitcast'ed (or otherwise lied about what it's doing).

well, you could say that such code invokes undefined behaviour and deserves what
it gets...

> +  // It's not safe to eliminate thee sign / zero extension of the return value.

thee -> the

Ciao,

Duncan.



More information about the llvm-commits mailing list