[LLVMdev] Why change "sub x, 5" to "add x, -5" ?
Krzysztof Parzyszek
kparzysz at codeaurora.org
Fri Jul 10 05:55:01 PDT 2015
On 7/10/2015 2:22 AM, Frédéric Heitzmann wrote:
>
>
> Unaware of your proposal, I used the TargetLowering::PerformDAGCombine hook.
> Is there a reason to prefere PreprocessISelDAG ?
Target-specific PerformDAGCombine only runs when the standard combiner
doesn't do anything. Also, various legalization steps can potentially
undo what it did. PreprocessISelDAG runs always and there is nothing to
get in its way.
-Krzysztof
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
More information about the llvm-dev
mailing list