[SelectionDAG] Make getPreferredExtendForValue take a Instruction * instead of Value *.
authorCraig Topper <craig.topper@sifive.com>
Mon, 21 Mar 2022 19:08:56 +0000 (12:08 -0700)
committerCraig Topper <craig.topper@sifive.com>
Mon, 21 Mar 2022 19:15:22 +0000 (12:15 -0700)
commit37c0aacd71871658786435c5d6b6273784d26f72
tree3ae6871dcaa2709a554348c2cd4012fb0b79f024
parentd89f9e963e4979466193dc6a15fe091bf7ca5c47
[SelectionDAG] Make getPreferredExtendForValue take a Instruction * instead of Value *.

This is only called for instructions and the caller is already holding
an Instruction *. This makes the code more explicit and makes it
obvious the code doesn't make decisions about constants.
llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp