[PATCH] D39685: AMDGPU: Handle or in multi-use shl ptr combi
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 6 10:29:01 PST 2017
rampitec added inline comments.
================
Comment at: lib/Target/AMDGPU/SIISelLowering.cpp:5123
// TODO: Support or
- if (N0.getOpcode() != ISD::ADD || N0->hasOneUse())
+ if ((N0.getOpcode() != ISD::ADD && N0.getOpcode() != ISD::OR) &&
+ !N0->hasOneUse())
----------------
|| N0->hasOneUse() is more readable in my view.
https://reviews.llvm.org/D39685
More information about the llvm-commits
mailing list