Displaying 3 results from an estimated 3 matches for "nethod".
Did you mean:
method
2020 Jul 01
2
How to prevent llvm's default optimization
...ition is too aggressive.
// If the add only has one use, this would be OK to do.
if (AddNode.getNode()->hasOneUse())
return true;
Shall we make it to
if (AddNode.getNode()->hasOneUse() && TargetLowering.isCheaperCommuteAddMul(......))
return true;
The virtual hook nethod isCheaperCommuteAddMul will return true by default, but specific targets like arm/riscv can make their own decision.
Just like virtual bool TargetLowering::decomposeMulByConstant
What's your opinion?
Ben
At 2020-07-01 02:29:36, "Sam Elliott" <selliott at lowrisc.org>...
2007 Sep 28
4
Creating nice looking lists: how?
Hello,
For my functions I want to create output similar in appearance to that
of what you get when you print a summary of lm model:
Residuals:
Min 1Q Median 3Q Max
-0.209209 -0.043133 0.001793 0.044105 0.234750
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.981762 0.004089 240.103 < 2e-16 ***
Factor 1
2020 Jun 30
2
How to prevent llvm's default optimization
Yes - this has been in InstCombine for a long time:
https://github.com/llvm/llvm-project/blob/master/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp#L268
We could say that the canonicalization should be reversed, but that
probably uncovers more missing optimizations.
The code size concern is legitimate. For example on x86, gcc asm is 2 bytes
smaller on this example: