If none of the bits of a VBICimm are demanded, we can remove the node entirely using the input operand instead.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/ARM/ARMISelLowering.cpp | ||
---|---|---|
20004 | Looks like VBIC uses the complement of the immediate. Does that need to be considered when checking Mask? |
llvm/lib/Target/ARM/ARMISelLowering.cpp | ||
---|---|---|
20004 | By "complement of the immediate", do you mean that it is the opposite of an And? If so then yes. |
LGTM
llvm/lib/Target/ARM/ARMISelLowering.cpp | ||
---|---|---|
20004 | I see, I interpreted the demanded bits as being those that should not be cleared. It all looks good with that clarification, thanks. |
Looks like VBIC uses the complement of the immediate. Does that need to be considered when checking Mask?