[cfe-dev] Question on "phi-node-folding-threshold"

Joan Lluch via cfe-dev cfe-dev at lists.llvm.org
Tue Sep 17 23:05:04 PDT 2019


Hi All,

For a custom backend I’m developing, where jumps are not particularly expensive, I want to reduce the phi-node-folding-threshold attribute value from the default 2 to just 1, as it produces better code in my case.

I first tried to set the attribute as a clang command line option, but it does not seem to be available. ( I tried “clang  -phi-node-folding-threshold=1” but this returns an “unknown argument” error)  

However, it works as intended if I replace the default value by hard coding in it in SimplifyCFG.cpp and recompiling clang

 My question is, Is there a way to set that attribute to a different value for a specific target?. Or at least to set it on the command line?

Thanks in advance

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190918/0354f19b/attachment.html>


More information about the cfe-dev mailing list